Hi!
I am looking to use the Javascript API to set the BodyId and BodyClass values when the editor loads. This way, I believe, I can pass the style of the element being edited, so the editor mimics the appearance of my page and the element being edited. I am using the FCKeditor_OnComplete function to make calls only after the editor has loaded.
In the config file I am specifying the path to my main CSS file and the editor loads with the right background colour as for the <body> tag of the page, however the BodyId and BodyClass styles do not appear to be in effect. That is, until I switch to 'Source' mode and switch back - then the editor takes the styles defined through the API.
Is this a bug or am I missing something?
(as a Mac user I have only tested in Safari and Firefox so far - both exhibit this issue)
I am looking to use the Javascript API to set the BodyId and BodyClass values when the editor loads. This way, I believe, I can pass the style of the element being edited, so the editor mimics the appearance of my page and the element being edited. I am using the FCKeditor_OnComplete function to make calls only after the editor has loaded.
In the config file I am specifying the path to my main CSS file and the editor loads with the right background colour as for the <body> tag of the page, however the BodyId and BodyClass styles do not appear to be in effect. That is, until I switch to 'Source' mode and switch back - then the editor takes the styles defined through the API.
Is this a bug or am I missing something?
(as a Mac user I have only tested in Safari and Firefox so far - both exhibit this issue)
Re: Javascript API Config functions not showing
Using the API to change the 'Config' settings is no use after the editor is loaded - as the term 'config' suggests these are settings for the editor to use when loading, not after it has loaded. Thus I have switched to using 'oEditor.EditorDocument.body.className="<passed-class-name>";'. This works without the editor reloading.