Hey guys
I've a question about the css format in FCKeditor with Firefox:
When I add the color definition to the style attribute of a tag in the way
FCKeditor changes it to
Is there a way to disable this feature? Or is this a bug? Can enyone help me with this. Thanx, Cyrill
I've a question about the css format in FCKeditor with Firefox:
When I add the color definition to the style attribute of a tag in the way
style="color: #000000"
FCKeditor changes it to
style="color: rgb(0, 0, 0);"
Is there a way to disable this feature? Or is this a bug? Can enyone help me with this. Thanx, Cyrill
Re: Color in rgb(255, 0, 0) with Firefox
This problem is not occurring in IE.
If anyone has solution please let us know.
Thanks in advance.
Re: Color in rgb(255, 0, 0) with Firefox
Firefox internally represents (and translates) all colors into rgb() format.
HTML code sent to the editor is given to the browser for interpretation, and is read back out from the browser when it is submitted. The editor doesn't maintain its own internal code representation, so it doesn't know what format you sent your colors in - it only knows how the browser returns it when requested...
So, no, it can't be turned off, and no, it's not a bug.
Re: Color in rgb(255, 0, 0) with Firefox
in Fire Fox it can be rectified , in teh fckconfig.js change the default.customsytleslike
Font
{
overrides : to span and keeps the span style and keep the Element as Font instead of span , it works in Fire Fox, Please let me know the output,
}
I want to know what changes should i do in order to work in a IE
please very urgent
Laxman Thota
Re: Color in rgb(255, 0, 0) with Firefox
// Other formatting features.
'FontFace' :
{
Element : 'font',
Styles : { 'font-family' : '#("Font")' },
Overrides : [ { Element : 'font', Attributes : { 'face' : null } } ]
},
'Size' :
{
Element : 'font',
Styles : { 'font-size' : '#("Size","fontSize")' },
Overrides : [ { Element : 'font', Attributes : { 'size' : null } } ]
},
'Color' :
{
Element : 'font',
Styles : { 'color' : '#("Color","color")' },
Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ]
},
'BackColor' : { Element : 'font', Styles : { 'background-color' : '#("Color","color")' } }
};
This seems to be working for FireFox, But Not in IE, what changes should i make in order to work in IE
Re: Color in rgb(255, 0, 0) with Firefox
In fckconfig.js, instead of these lines :
'Color' :
{
Element : 'span',
Styles : { 'color' : '#("Color")' },
Overrides : [ { Element : 'font', Attributes : { 'color' : null } } ]
},
Write it :
'Color' :
{
Element : 'font',
Attributes : { 'color' : '#("Color")' }
},
Re: Color in rgb(255, 0, 0) with Firefox
Well, it is irritating.
So, those who use Firefox end up with rgb in their HTML. To me, it is irritating because all the graphics tools I have, and that my site admins probably have, work with hex numbers for color. So, to edit the HTML, a user needs to find the rgb value for the hex number they have, then edit 3 rgb component numbers. Not very user friendly.
LesBarstow mentions the mechanism - CKEditor posts the code, and reads it back from the browser's source of the rendered code. Sounds like this is the spot to make a code modification, to run an rgb to hex conversion.
Dennis