Hi,
I have installed CKEditor 7.x.1.0.I have set the default font name as 'Lucida Sans Unicode' and
default fontsize as '12px' in the CKEditor settings (I have given this in the Advanced Options and
inside the Custom javascript configuration textarea I have given the default values as
font_defaultLabel = 'Lucida Sans Unicode'; and fontSize_defaultLabel = '12px';).
My problem is that even though I have set the default values and when i type text inside the textarea
with the CKEditor enabled, these default font name and font size are not applied to the text I typed.I
am able to view the default values been selected and displayed in the CKEditor toolbar but its not
been applied to the text I have typed.Only when i select the complete text and manually apply the
font name and font size, then only it works.
I want actually the default font name and font size to be applied to the text without being selected
manually from the tool-bar of the CKEditor.Is there any solution for this? or has anyone faced a
similar problem like this?
Thank you.
Comments
Comment #1
mkesicki commentedComment #2
dczepierga commentedHi,
Do u use Filtered or Full HTML as input format? Do u modify input format filters?
Maybe try to update CKEditor module and plugin to last stable version, and then write that the problem still exists...
Greetings
Comment #3
dczepierga commentedIssue is not active over 1 month so i closed it.
Greetings
Comment #4
firdous.ali86 commentedhi,
I have latest stable release of ckeditor 7.x-1.3 module and 3.6.1 version of ckeditor code, i use Full HTML as input filter.
I specified my default font setting in Advanced Options as mentioned above , when I enter some text in the editor the font select dropdown gets its font value that i assigned in the conf but it does not apply the font to the text in the editor.
Is there any thing I am missing or is it the bug?
Thanks
Comment #5
firdous.ali86 commentedbug reproduced
Comment #6
dczepierga commented@firdous_kind86, as i understand, u are using Advanced options -> Custom javascript configration in CKEditor profile?
If yes, could u paste here what u have there? Do u prefix your settings variable with
config.?Greetings
Comment #7
firdous.ali86 commentedI placed:
config.font_defaultLabel = 'Times New Roman';
yes i m using Advanced options -> Custom javascript configuration, i also tried placing the config in ckeditor.config.js
Comment #8
mkesicki commentedComment #9
dczepierga commented@firdous_kind86, pls read in the CKEditor API docs what do this variable which u try to use:
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.font...
Is not changing the default font, but only label to inform users that they must choose the font, or they currently use this font.
To change default font u must do this in theme CSS and in CKEditor profile > CSS > Editor CSS set "Use theme CSS" or u can try to edit ckeditor.css file and there set the default font.
If u have more questions pls reopen this issue.
Greetings
Comment #10
GHenson commentedBug easily reproduced.
Changing the associated theme and ckeditor css files has NO effect. While Firebug reflects the modified css values, CKEditor ignores the css values and is hard-coded to employ a default font size of 12px.
Regarding "works as designed", then please reconsider the design. Specifying default font settings is a frequent requirement that should be possible through ckeditor's config file and/or as config settings during the editor's instantiation - without having to modify associated css files; thereby allowing the user to easily specify different default font settings for individual CKEditor instances . . .
Otherwise, a truly remarkable product!
Thanks.