In PrimeFaces editor, if i wish to insert source code (XML or XHTML) within <pre> it is converted to <pre>
As a result, the syntax highlighter cannot be used later when the content is displayed in a view. Is it possible to insert source code escaping certain elements and thus enable syntax highlighting?
Note:
I guess the plugins for the editor are also limited in functionality when compared to other editors like TinyMCE. http://premiumsoftware.net/cleditor/dow ... index.html
In RichFaces editor they were using TinyMCE which provided facility to escape certain tags (as below passing as a f:param)
Code: Select all
<f:param name="extended_valid_elements" value="pre[name|class],video[src|controls]"/>