It looks like any inline javascript is breaking CK Editor for me. The javascript snippet that is breaking it for me on a couple of pages is:
I don't need to be able to edit the javascript per se but when my users are done editing the page with CK Editor I would like to make sure that the javascript snippet gets resaved along with the updated content.
Any ideas?
<script type="text/javascript"> new fadeshow(fadeimages3, 191, 189, 0, 3000, 0); </script>
I don't need to be able to edit the javascript per se but when my users are done editing the page with CK Editor I would like to make sure that the javascript snippet gets resaved along with the updated content.
Any ideas?
Re: Inline Javascript breaking CKEditor
Do you get javascript errors?, does the HTML of your page validate?
Re: Inline Javascript breaking CKEditor
I am using SyrinxCKEditor ASP.Net Wrapper control to create the ck editor instance. I am populating the html/js snippet from the code behind file using the method exposed by this wrapper.
My html/js is valid and displays fine when put on to the page. Also all my other pages work with CK Editor just fine it is just the pages with inline javascript that have this issue. What it looks like happens is that the </script> tag on my inline javascript escapes out of some scripts that are used to manage the content in the ck editor.
Do you see similar behavior when using CK Editor normally or is this related to some flaw in the wrapper control?
Also I am getting one javascript error on the pages that have the inline js. It is:
Re: Inline Javascript breaking CKEditor
It seems that the wrapper is sending the contents as part of a script (instead of using a textarea providing that way a fallback for users that can't use CKEditor) and worst: it isn't escaping the data.
There's another .net wrapper in viewforum.php?f=11 that I don't think that has this problem
Re: Inline Javascript breaking CKEditor
Now I have to figure out how to terminate javascript functions that are looping in the background so my page doesn't error out when I try to swap in new content (=.
Thanks.