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

mkesicki’s picture

Version: 6.x-1.0 » 7.x-1.0
Priority: Critical » Normal
dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,
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

dczepierga’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Issue is not active over 1 month so i closed it.

Greetings

firdous.ali86’s picture

Status: Active » Closed (cannot reproduce)

hi,
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

firdous.ali86’s picture

Version: 7.x-1.0 » 7.x-1.3
Status: Closed (cannot reproduce) » Active

bug reproduced

dczepierga’s picture

Status: Closed (cannot reproduce) » Postponed (maintainer needs more info)

@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

firdous.ali86’s picture

I 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

mkesicki’s picture

Status: Postponed (maintainer needs more info) » Needs work
dczepierga’s picture

Category: task » support
Status: Needs work » Closed (works as designed)

@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

GHenson’s picture

Status: Closed (works as designed) » Needs work

Bug 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.