Hi
I'm having trouble using FCKEditor to edit my PHP code.
I've set
in fckconfig.js
Problem is when I initiate the editor using either the PHP or the Javascript method, it strips out my existing PHP code.
Example:
If I use the Javascript method to convert that textarea to an editor, I get the HTML but it strips the PHP. I want to be able to edit the PHP as well!
Any help appreciated, and sorry if this is an already answered question (I'm sure it is). These forums don't allow you to search for the word "PHP"!
I'm having trouble using FCKEditor to edit my PHP code.
I've set
FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;
in fckconfig.js
Problem is when I initiate the editor using either the PHP or the Javascript method, it strips out my existing PHP code.
Example:
<textarea> This is <b>HTML</b> <?php echo "php"; ?> </textarea>
If I use the Javascript method to convert that textarea to an editor, I get the HTML but it strips the PHP. I want to be able to edit the PHP as well!
Any help appreciated, and sorry if this is an already answered question (I'm sure it is). These forums don't allow you to search for the word "PHP"!