Closed robcarey closed 4 months ago
That is more of a plugin request. I'm sure someone could make it happen. You could create a very open config in the MCE options that allows for basically just TinyMCE with the HTML editor option, and all elements valid. Like e.g.
{
"theme": "inlite",
"inline": true,
"plugins": "code",
"selection_toolbar": "code",
"valid_elements": "*[*]"
}
A plugin makes sense. I suppose the existing RTE editor is enabled as a plugin. The ACE editor has color highlighting and line numbers and does not ever mess with the content. That would be ideal in my books.
Also - the above example for valid elements is what I currently have. It does not respect those options at all.
Fred is amazing. We're building some spectacular functionality with this tool.
One pain point we frequently run into is we have an element that is sort of the meat and potatoes - basically a rich text editor area. Quite often we need to include snippet calls or chunk calls in this area and while it "works", it really falls apart quickly as a manageable experience. TinyMCE in source mode is really poor.
&
This is very messy working with complex calls at a minimum and occasionally destructive.I know a workaround here is "Put your code in a chunk", and it's currently how we do handle this. This is not however ideal - we're running into chunk creep to some degree and all agree having the ability to just put the call in context on the resource is preferable.
Any chance of allowing for ACE as the code view option?