go into editor/css/fck_editorarea.css and change the line from body { background-color: #ffffff; } to body { background-color: red; } and your editor bg-color will be red.
Don't forget to clear your cache if you reload an the bg-color is still white.
In the DocProps it is possible to set the background color of the document. But my problem is, I cannot open this form, because this function is disabled (it is 'grey'). Does anyone know how ik kan call this function?
it works indeed, but it is not precicely what i meant. I want to change the backgroundcolor dynamically (the user should be able to choose it).
This works fine via this code: var editor_frame = document.getElementById("FCKeditor1___Frame"); var editor_source = editor_frame.contentWindow.document.getElementById("eEditorArea"); editor_source.contentWindow.document.body.style.backgroundColor = color;
but the problem is that the color disappears when you reload the page, or when you switch between htmlcode, or when you use the example button..
is it possible to hold the color someway? Or to set it in the $oFCKeditor->Value?
RE: Set and remember backgroundcolor
body {
background-color: #ffffff;
}
to
body {
background-color: red;
}
and your editor bg-color will be red.
Don't forget to clear your cache if you reload an the bg-color is still white.
RE: Set and remember backgroundcolor
thnx in advance
RE: Set and remember backgroundcolor
var oEditor = window.InnerDialogLoaded() ;
var FCK = oEditor.FCK ;
var oBody = FCK.EditorDocument.body ;
SetAttribute( oBody, 'bgcolor', color ) ;
but the 'InnerDialogLoaded()' is 'not supported'. I can't find this method either.. anyone knows the solution?
RE: Set and remember backgroundcolor
This works fine via this code:
var editor_frame = document.getElementById("FCKeditor1___Frame");
var editor_source = editor_frame.contentWindow.document.getElementById("eEditorArea");
editor_source.contentWindow.document.body.style.backgroundColor = color;
but the problem is that the color disappears when you reload the page, or when you switch between htmlcode, or when you use the example button..
is it possible to hold the color someway? Or to set it in the $oFCKeditor->Value?
RE: Set and remember backgroundcolor
http://sourceforge.net/forum/forum.php? ... _id=257180