Hello!
I will change the text color to red.
In my application, before, the writters write in black but now the corrector write in red if he found an error...
I don't want change the FontColors because TextColor of my toolbar is off!
Thanks for your contributions
I will change the text color to red.
In my application, before, the writters write in black but now the corrector write in red if he found an error...
I don't want change the FontColors because TextColor of my toolbar is off!
Thanks for your contributions

Re: Change Text color
Re: Change Text color
http://docs.fckeditor.net/FCKeditor_2.x ... stomStyles
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Change Text color
fckconfig.js :
FCKConfig.CustomStyles = { 'default'{Element :'h3', Styles : {'color' : 'Black' } } 'mystyle1' : {Element :'h3', Styles : {'color' : 'Red' } } };My file
$oFCKeditor = new FCKeditor('text') ; ... $oFCKeditor->CustomStyles = 'mystyle1'; $oFCKeditor->Create();But it's no ok!
What's my error?
Re: Change Text color
Re: Change Text color
http://docs.fckeditor.net/FCKeditor_2.x ... stomStyles
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Change Text color
FCKConfig.CustomStyles = { 'default'{Element :'h3', Styles : {'color' : 'Black' } } 'red' : {Element :'h2', Styles : {'color' : 'Red' } } 'green' : {Element :'h1', Styles : {'color' : 'Green' } } };It's right?
What do I write before the instanciate?
Not this :
$oFCKeditor = new FCKeditor('contenu') ; $oFCKeditor->BasePath = '../fckeditor/'; $oFCKeditor->Value = $content; $oFCKeditor->Config['CustomStyles'] = 'red'; $oFCKeditor->Create();Thanks for your help
Re: Change Text color
Change Text color
var editor, html = ''; var config = { language: 'vi', toolbar: [ ['Bold', 'Italic'], ['TextColor'], ], colorButton_colors: 'D30000,3C3C3C', colorButton_enableMore: false, colorButton_foreStyle: { element: 'b', styles: {color: '#(color)'} } }; editor = CKEDITOR.appendTo('editor', config, html);