Hi, good attempts, while IMO source code modification should always be the last choice, in this case, it could be done in a more simple way, I hope this could help:
CKEDITOR.replace( 'editor1',
{
on : {
instanceReady : function ( evt )
{
var editor = evt.editor,
body = editor.document.getBody();
body.setAttribute( 'class', editor.config.bodyClass );
body.setAttribute( 'id', editor.config.bodyId );
}
}
} );
Thanks for responding, but that's identical to what I first posted, only your version is on a per editor basis while mine is universal (I understood that choice from the page I linked to in my original post, from which I learned this technique).
What I was looking for is where I can get those config variables set into the body's class and id by the editor code itself rather than needing to do a universal or editor at a time change in an on:instanceReady function myself.
I don't necessarily want to edit the official source code myself, but I was hopeful that with the idea of where to put this code, I could figure out how to fix it myself and submit the change for a sooner to be released version than 3.1, so it'd be ready for others to use as well already.
I love ckeditor 3.0. It is a truly excellent tool, so thanks for making it available like this.
Re: setting body id and class from config
CKEDITOR.replace( 'editor1', { on : { instanceReady : function ( evt ) { var editor = evt.editor, body = editor.document.getBody(); body.setAttribute( 'class', editor.config.bodyClass ); body.setAttribute( 'id', editor.config.bodyId ); } } } );Re: setting body id and class from config
What I was looking for is where I can get those config variables set into the body's class and id by the editor code itself rather than needing to do a universal or editor at a time change in an on:instanceReady function myself.
I don't necessarily want to edit the official source code myself, but I was hopeful that with the idea of where to put this code, I could figure out how to fix it myself and submit the change for a sooner to be released version than 3.1, so it'd be ready for others to use as well already.
I love ckeditor 3.0. It is a truly excellent tool, so thanks for making it available like this.