Bootstrap text editor great for everything else but hard to use for DTML #489
The text editor that's displayed for the bootstrap-enabled ZMI is great for Python scripts and page templates. But it makes editing DTML documents and methods painful because it insists on well-formed content. DTML does not (and will never) conform to well-formed XML.
Is there a way to pass some kind of flag to the editor to stop forcibly suggesting closing tags when working with DTML and to stop flagging unclosed DTML tags as errors?
After a quick glance I think there are several hook points where to interfere.
The easiest one would be probably too "brutal" - ie deleting the data-contenttype attribute in
=> ace does not get loaded then.
One could also set a custom data-contenttype - currently "HTML" is set.
This would have to be done here:
It seems - deactivating the worker not only deactivates the checker, but also the highlighting. Maybe somebody who introduced ace should have a look.