I see, I definitely misread your issues!
As I can see on that screenshot, you are trying to add a google javascript code into the editor.
This will not work! This is, while all these new CKEDITOR versions have a filter running, called
ACF.
(*) What Impact Does ACF Have on Plugins?
Advanced Content Filter (ACF) is a set of rules that determine which editor features will be available to the user. It limits and adapts input data so it matches the editor configuration in the best possible way. It may also deactivate features which generate HTML code that is not allowed by the configuration.
How does it affect plugins? If your plugin generates content, you will need to update it so that it would extend the default CKEditor filters and make the editor accept this content.
So something like plain media iframes (youtube videos), or code like the one you are trying to insert, will never be allowed. For people not caring about this
security feature by CKEDITOR, I added an option to the plugins config, to turn that off. Now every code, or iframe, or changed classname, etc will be executed, saved and reloaded, like you have inserted it. Having ACF On (default), CKEDITOR does not show forbidden markup again after you saved and reloaded that editor page.
The new version 1.3 coming out this week, see
http://board.s9y.org/viewtopic.php?f=4& ... #p10436140, will take care of the video iframe things, without the need to turn off ACF.
If you think sharing code parts (which in my means, is something other than your example) to the editor is a need to be build-in by an included CKEDITOR-plugin, please share your thoughts in that other thread, so we all can discuss that.
This was point 1.
Point 2 is about inserting javascript execution code to this sort of nugget plugin. It will certainly scramble and interfere badly with the CKEDITOR Lib javascript and is generally a bad idea to this in here too. If you would like to have a pageads or analytic script added to your template, there are certain other ways to do this right with Serendipity.
Search the event plugin list for something like that, or learn to do it manually and write it to your index.tpl file. An example to put in an analytic script is here: board.s9y.org/viewtopic.php?f=5&t=19407&p=10435835#p10435835 - the other would be the Google Adsense plugin for example.