php - How to encode HTML WYSIWYG editor CKEditor? -
i use wysiwyg editor ckeditor on site. have problem if take javascript script in editor , send these changes. shows me popup instead of show me html string. try encode text typed encodes code created editor (bold, underline).
i tried use configuration using wysiwyg editor:
config.htmlencodeoutput = true;
by typing <script> alert ('test') </ script>
in editor, displays correctly on display. if want re-edit code, wrote me in editor:
<script>alert("test");</script>
do have idea how fix this?
try adding code ckeditor/config.js:
config.basicentities = false; config.entities = false;
also make sure acf setup not strip code. more here:
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
Comments
Post a Comment