Hi,
trying hard to get around with the new and nice API, I can't solve this issue:
With:
I'm able to add the id attribute to the body in the editor iframe and through this I'm able to adjust the css for it (<body id="CKeditor" ...).
But when changing to "Source Code" in the editor and changing back to "wyswig" the id is gone.
Someone has a tip for me, how to solve this?
Any ideas welcome.
Merry X-mas
Fränzchen
trying hard to get around with the new and nice API, I can't solve this issue:
With:
<script type="text/javascript"> //<![CDATA[ window.onload = function(){ CKEDITOR.on( "instanceReady", function( ev ){ ev.editor.document.$.body.id = "CKeditor"; ev.editor.focus(); }); CKEDITOR.replace("foo") }; //]]> </script>
I'm able to add the id attribute to the body in the editor iframe and through this I'm able to adjust the css for it (<body id="CKeditor" ...).
But when changing to "Source Code" in the editor and changing back to "wyswig" the id is gone.
Someone has a tip for me, how to solve this?
Any ideas welcome.
Merry X-mas
Fränzchen
Re: set attribute id to ckeditor body
Re: set attribute id to ckeditor body
I tried using the currentInstance event and then setting the id using the same variable captured in the instanceReady event but that didn't seem to work. This problem is a real showstopper.
Thanks.
Re: set attribute id to ckeditor body
Happy new year to all!
Hoping that anybody got an idea how to fix my prob I've been dissapointed
No one there who solved the prob?
Thanks in advance
Re: set attribute id to ckeditor body
If you upgrade to 3.1 you can use config.bodyId