Which version of MODx are you using? With Revo it's very easy to install CodeMirror or Ace, whichever code editor you prefer, and configure MODx to use it for editing resources as well as elements.
Ah. The rich text editors (TinyMCE and CKEditor, not sure about Aloha) do that. Highlight the text and click the various buttons on the RTE's toolbar.
-
- 6 Posts
tinyMCE is a WYSIWYG editor and the code is dirty. For me the best is when the editor write the tags or help to propose the completion.
I want juste an editor that write html tags withou show the final result.
Ah, yes. I'd like to be able to insert images and links without the WYSIWYG as well.
This looks like what you want; it would need to be set up as a plugin similar to CodeMirror or Ace, though. A bit beyond my abilities right now.
http://markitup.jaysalvat.com/examples/html/