Javascript WYSIWYG that ignores PHP Code with Bootstrap3 -


i'm adding *.php editor cms similar done in drupal's node editor. currently, have selectbox values wysiwyg , php code. if wysiwyg selected code inside text area parsed tinymce (i've read other answers , found markitup.jaysalvat.com seemed wysiwyg less). whatever javascript editor, i'd (or building) bootstrap front end allow col, rows, btn, etc.

if php code selected raw php code shown , editable. played around little other day using htmlspecialchars_encode , htmlspecialchars_decode $_post , seems fine when using php code editor.

however, when used tinymce wrapped php in paragraph tags, etc. aware of addon or alternative wysiwyg javascript script can parse html code without messing php code, preferably, not builtin bootstap3 components?

if there open source out there already, save me developing whole thing scratch.

thank in advance.

try adding tinymce configuration:

protect: [     /<\?php.*?\?>/g // protect php code ], 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -