We are using FCKeditor in Plone. The edited documents have JavaScripts (inside <script> tags) included in the source code. From some point (2.4.7 release) these JSs get executed when loaded into FCKeditor – the JS functions enclosed in the <script></script> tags remain intact but the output of the functions gets written into the source (immediately after the closing </script> tag). Saving the document results in having the output of the JS functions hard coded into the HTML source. The same holds true not only of functions but of simple use of document.write(), as well.
Before asking the Plone developers for a fix, I tried searching the FCKeditor.net docs and forums to find out what is the expected behaviour of FCKeditor in these circumstances (JS in the edited source code). I have found several topics touching on this point but none of them contained an authoritative answer. This topic is a plea for such an answer. Thanks to anybody who undertakes it.
Before asking the Plone developers for a fix, I tried searching the FCKeditor.net docs and forums to find out what is the expected behaviour of FCKeditor in these circumstances (JS in the edited source code). I have found several topics touching on this point but none of them contained an authoritative answer. This topic is a plea for such an answer. Thanks to anybody who undertakes it.

Re: JavaScript in the source code – official docs
I'm using 2.6.3, and my document JavaScripts are *not* being executed (either inline or sourced). So whatever it is, is either gone in 2.6.3, or is somehow triggered by a specific condition.
Re: JavaScript in the source code – official docs
oFCKeditor.Value = "<?php echo str_replace( array(chr(10),"'",'"',chr(13),'</script>'), array('',''','\\"',"\\".chr(13).chr(10),'</"+"script>'), $pageData['content'] ); ?>";Re: JavaScript in the source code – official docs
I'm considering inserting a custom tag of some sort to save the configuration of the plugin and inject the javascript with PHP at page load. Has anyone else had any experience with this?