Is there a setting that would allow me to add JSP code snippets to CKEditor in SOURCE mode that won't break once I return to WYSIWYG mode?
That is, in source mode, I can put something like:
into the page. In fact, it will even work when run in our JSP environment where the HTML from CKEditor is put into a page.
But as soon as I go to WYSIWYG mode, the editor converts that into HTML-safe entities, which of course means the JSP code is no longer valid, like:
Is there a way to allow such JSP fragments to remain in the editor without being converted?
That is, in source mode, I can put something like:
<%=(new java.util.Date())%>
into the page. In fact, it will even work when run in our JSP environment where the HTML from CKEditor is put into a page.
But as soon as I go to WYSIWYG mode, the editor converts that into HTML-safe entities, which of course means the JSP code is no longer valid, like:
<%=(new java.util.Date())%>
Is there a way to allow such JSP fragments to remain in the editor without being converted?
Re: JSP code added to CKEditor through Source view not allow
If you want to also allow JSP tags, you can try:
This is lightly tested, so don't know yet if there are any issues with this yet as a solution.