Have an app using FCKeditor 2.6. In source mode if i paste HTML in that has a <script> tag in the contents the script tag causes the entire contents including all other HTML to become escaped. So
will become
<p><b>Hello</b> <script type='text/javascript'>alert("test")</script></p>
Take out the script tags and everything is fine.
How can i set FCKeditor to allow for script tags?
ty
<b>Hello</b> <script type='text/javascript'>alert("test")</script>
will become
<p><b>Hello</b> <script type='text/javascript'>alert("test")</script></p>
Take out the script tags and everything is fine.
How can i set FCKeditor to allow for script tags?
ty
Re: How to allow Script Tags
when i write script I use scrpt not script (note it's script with no i).
ex:
<scrpt>alert('works');</scrpt>
FCK accepts this and does not mess with your formating or code. I use php to pull in the text from my database so I used php to replace the word scrpt with script.
ex:
echo str_replace("scrpt","script",$body);
Works perfect for me everytime. Hope this helps