This is the only way to force the ck editor to create a default font. IE wraps the entered text in a (default) font, even if no font is selected, and therefore displays formatted text. If you want the changes to be universal, add the following to config.js. Otherwise, it should be possible to add it to only one instance. Although I have not tried this.
config.font_defaultLabel = 'Arial';
This will disable the default "Arial". Although even this does not work as I hope. First, the editor must be activated (and not just loaded) for the default drop-down list. Then, unlike manual selection, the value is not highlighted in the drop-down list. It just displays.
Then add this below the default configuration options:
CKEDITOR.on( 'instanceReady', function( ev ) { ev.editor.setData('<span style="font-family:Arial, Verdana, sans-serif;">­</span>'); });
This will pre-fill the text area with the required range. However, you must include some characters in the span tag to make this hack work. So you are going to be stuck with something in your release that you really don't want. The initial version of this I found somewhere on the Internet:
­
Which seems relatively harmless.
I looked and searched for the best way (and would like someone to know it). Most people simply claim to have captured the output and reformatted it. This is not an option for me. This can also be done with a custom plugin. It was also not viable for me.
I hope this helps someone save at least some time.
PS The original came from support in the CK editor. Here is the link: forum
source share