Hi, in the toolbal there are two types of colors, textcolor and backgroundColor (this one for highlight), but i added one more type, a Background Color for the IFRAME. it works perfectly.
In the function: FCKTextColorCommand.prototype.SetColor=function(color)
i added and opction for my color type:
FCK.EditorDocument.body.style.backgroundColor=color
and some changes in the preview function too. But to complete this i need to get again the backgound color and the content of the html editor.
I write a function to get the backgorund color:
FCK.Get_RBGColor=function()
{
return FCK.EditorDocument.body.style.backgroundColor;
}
For examples... This is called in the preview function.
But how can i call this funcion or parameters in JS that i defined in my page.
in th verson 1.6 i used the next line to obtain the IFRAME backgound color :
document.frames.frame_{bod
y_box_name}.objContent.DOM.body.style.backgroundColor;
How can i get in the new version??
In the function: FCKTextColorCommand.prototype.SetColor=function(color)
i added and opction for my color type:
FCK.EditorDocument.body.style.backgroundColor=color
and some changes in the preview function too. But to complete this i need to get again the backgound color and the content of the html editor.
I write a function to get the backgorund color:
FCK.Get_RBGColor=function()
{
return FCK.EditorDocument.body.style.backgroundColor;
}
For examples... This is called in the preview function.
But how can i call this funcion or parameters in JS that i defined in my page.
in th verson 1.6 i used the next line to obtain the IFRAME backgound color :
document.frames.frame_{bod
y_box_name}.objContent.DOM.body.style.backgroundColor;
How can i get in the new version??
RE: Background-Color for the IFRAME??
i access this properties from js:
color_FCKeditor = document.frames['#name#'].eEditorArea.document.body.style.backgroundColor;
=)
RE: Background-Color for the IFRAME??