Hi, I have FCKeditor version 2.6.4.1Build 23187 and I'd like to embed php scripts into my text content when I create that text via FCKeditor. (Although my template page is .php, I still want to be able to add PHP scripts via FCKeditor)
Cannot add PHP Scripts into FCKeditor
4
Hi,
I have FCKeditor version 2.6.4.1Build 23187 and I'd like to embed php scripts into my text content when I create that text via FCKeditor. (Although my template page is .php, I still want to be able to add PHP scripts via FCKeditor)
The problem is when I click the 'Source' button and add any php script, FCKeditor automatically strips that code and removes it.
For example:
If I click 'Source', then add the following: <?php echo $Test?> and then click the 'Source' button again to go back to normal text view, and then click 'Source' again, I get...
<!--p echo $Tes-->
I know very basic PHP, so is there a 'trick' or an easy way to 'force' FCKeditor to accept my PHP scripts?
I spent hours on this on the Web and couldn't find a solution!
Thanks.
I have FCKeditor version 2.6.4.1Build 23187 and I'd like to embed php scripts into my text content when I create that text via FCKeditor. (Although my template page is .php, I still want to be able to add PHP scripts via FCKeditor)
The problem is when I click the 'Source' button and add any php script, FCKeditor automatically strips that code and removes it.
For example:
If I click 'Source', then add the following: <?php echo $Test?> and then click the 'Source' button again to go back to normal text view, and then click 'Source' again, I get...
<!--p echo $Tes-->
I know very basic PHP, so is there a 'trick' or an easy way to 'force' FCKeditor to accept my PHP scripts?
I spent hours on this on the Web and couldn't find a solution!
Thanks.
- zardon
- Milito25
Next Topics on Trending Feed
-
4