I am building a graphical form creator where the user can add in a select list populated via a Java Bean.
I am running into a lot of problems when inserting the Html code. I have protected the JSTL tags with
config.protectedSource.push( /<c:set .*? \/>/g );
config.protectedSource.push( /<c:forEach .*? \>/g );
config.protectedSource.push( /<c:out .* \>/g );
config.protectedSource.push( /<\/c:forEach>/g );
the following is the code in the plugin where I insertHtml
editor.insertHtml("<select name='tool'>"
+"<c:set var='toollist' value='${toolBean.tools}' />"
+"<option value=''>Select a tool</option>"
+"<c:forEach items='${toollist}' var='cur'>"
+"<c:out value='<option>${cur}</option>'/>"
+"</c:forEach>"
+"</select>");
I have tried using elements as well. The results are unsatisfactory as the tags will get filtered by CkEditor during the submit process. With the above, c:set tag is output correctly. "c;forEach" is not opened but closed. "c:out" is also truncated.
I have been searching around for an solution for 2 weeks.
Help is appreciated
What version of CKEditor are
What version of CKEditor are you using?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
I am using version 4.1
I am using version 4.1