CodeMirror logo

CodeMirror plugin

Code editor inside WYSIWYG editor
CodeMirror screenshot
CodeMirror screenshot
CodeMirror logo

The TinyMCE wysiwyg editor comes with a very basic HTML source editor. It works, but doesn't offer many features. Plugin for TinyMCE makes editing HTML source code a more pleasant experience. This plugin is based on the excellent CodeMirror code editor, developed by Marijn Haverbeke.

Facilities:

  • Syntax highlighting of HTML, Javascript and PHP code
  • Line numbers
  • Highlighting the line currently being edited
  • Automatic indentation
  • Many undo/redo levels
  • Search/Replace functionality

This TinyMCE plugin is compatible with pretty much all browsers out there, including Firefox, Google Chrome, Safari and Internet Explorer, version 8 or better. It is NOT compatible with Internet Explorer 6 or 7, simply because CodeMirror itself does not work in these versions.

Get more info on CodeMirror home page: https://codemirror.net

TinyMCE 6 logo TinyMCE 6
TinyMCE 5 logo TinyMCE 5
TinyMCE 4 logo TinyMCE 4

Install CodeMirror plugin in TinyMCE 6

  1. Download plugin from developer website
  2. Copy codemirror directory to tinymce/plugins/.
  3. Edit TinyMCE config and add codemirror to plugins key
  4. Add buttons to the toolbar section: code

Install CodeMirror plugin in TinyMCE 5

  1. Download plugin from developer website
  2. Copy codemirror directory to tinymce/plugins/.
  3. Edit TinyMCE config and add codemirror to plugins key
  4. Add buttons to the toolbar section: code

Refer to TinyMCE 5 add-ons installation manual for more details

Install CodeMirror plugin in TinyMCE 4

  1. Download plugin from developer website
  2. Copy codemirror directory to tinymce/plugins/.
  3. Edit TinyMCE config and add codemirror to plugins key
  4. Add buttons to the toolbar section: code

Reviews

This is an awesome plugin. I use it from within CKEditor. The AutoFormat works great.

It doesn't do too much like the CKEditor ACF and is slick right out of the box. Default configs rock. It's just perfect. My choicest plugin.

User icon
Susheela L.
Freelancer

Love this plugin and I use it everywhere. Life is easier using codemirror:)

User icon
Christianne G.
Freelancer

I combined CodeMirror and SourceDialog. Greate result. Thanks a lot!

User icon
Rob S.
Individual

Tell a friend about CodeMirror

Send