All,
1) I am trying to set a default font and font size.
I see this in the CKEditor API:
However, I'm not sure how to edit it to my liking. Could someone show me the correct way to set the default font to Arial?
For font size, I see this in the API:
Can someone show me how to set the default size to 20pt (or 20px)?
2) Setting Labels
I see the following to set labels for font and font size, but have had no luck getting them to work:
Any idea something I might be doing wrong? I am able to edit the config file to set other things, so I don't see why the labels aren't setting.
Thanks for all your help!
1) I am trying to set a default font and font size.
I see this in the CKEditor API:
<static> {Object} CKEDITOR.config.font_style Since: 3.0 The style definition to be used to apply the font in the text. Defined in: plugins/font/plugin.js. // This is actually the default value for it. config.font_style = { element : 'span', styles : { 'font-family' : '#(family)' }, overrides : [ { element : 'font', attributes : { 'face' : null } } ] };
However, I'm not sure how to edit it to my liking. Could someone show me the correct way to set the default font to Arial?
For font size, I see this in the API:
<static> {Object} CKEDITOR.config.fontSize_style Since: 3.0 The style definition to be used to apply the font size in the text. Defined in: plugins/font/plugin.js. // This is actually the default value for it. config.fontSize_style = { element : 'span', styles : { 'font-size' : '#(size)' }, overrides : [ { element : 'font', attributes : { 'size' : null } } ] };
Can someone show me how to set the default size to 20pt (or 20px)?
2) Setting Labels
I see the following to set labels for font and font size, but have had no luck getting them to work:
<static> {String} CKEDITOR.config.fontSize_defaultLabel Since: 3.0 The text to be displayed in the Font Size combo is none of the available values matches the current cursor position or text selection. Defined in: plugins/font/plugin.js. // If the default site font size is 12px, we may making it more explicit to the end user. config.fontSize_defaultLabel = '12px';
<static> {String} CKEDITOR.config.font_defaultLabel Since: 3.0 The text to be displayed in the Font combo is none of the available values matches the current cursor position or text selection. Defined in: plugins/font/plugin.js. // If the default site font is Arial, we may making it more explicit to the end user. config.font_defaultLabel = 'Arial';
Any idea something I might be doing wrong? I am able to edit the config file to set other things, so I don't see why the labels aren't setting.
Thanks for all your help!