Load PHP Into TinyMCE -


how load php tinymce have content :

<?php echo "ok"; ?> 

image : http://i.stack.imgur.com/pqbkq.png

i want put textarea (tinymce). try many way not working. please me. you.

if want able put php source view of tinymce , have tinymce keep php tags can use protect attribute of tinymce configuration:

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

from documentation:

"this configuration option enables control contents should protected editing while gets passed editor. could, example, control codes in html. it's recommended not use inline control contents since breaks wysiwyg editing concept, can't avoided.

the option takes array of regular expression match contents against , these invisible while editing."


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -