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
Re: set attribute id to ckeditor body