I set the tab-size attribute in a cke_source class in the styles for the page hosting CKEDITOR. My setting in that class (along with browser-specific variants) is reflected when editing in source mode.
However, I also want to override the white-space and overflow attributes so that only hard line breaks cause a new line in the editor while long lines scroll off to the right. But I see from Object Inspector that my setting for white-space gets overridden in editor.css. (I haven't checked overflow yet.)
I can edit editor.css in the CKEDITOR directory tree. But if there is an alternative, I prefer not to edit in that directory so that I can simply replace it in one piece if I later do a version upgrade.
Is there a lighter-handed approach? Either a config setting or API method to inject CSS after editor.css or a way to use a modified copy of editor.css that resides external to the ckeditor directory? (As one would expect, contentsCss seems to have no effect on the editor itself.) I know if I used a copy of editor.css, I'd have to reconcile it after any upgrade, but that still seems clearer and easier to remember two years from now than one or more edited files buried somewhere in the mothership.
Sorry if this is answered somewhere obvious. I've looked for several hours now but I'm on the end of a multi-day burn and may not be at my best.
However, I also want to override the white-space and overflow attributes so that only hard line breaks cause a new line in the editor while long lines scroll off to the right. But I see from Object Inspector that my setting for white-space gets overridden in editor.css. (I haven't checked overflow yet.)
I can edit editor.css in the CKEDITOR directory tree. But if there is an alternative, I prefer not to edit in that directory so that I can simply replace it in one piece if I later do a version upgrade.
Is there a lighter-handed approach? Either a config setting or API method to inject CSS after editor.css or a way to use a modified copy of editor.css that resides external to the ckeditor directory? (As one would expect, contentsCss seems to have no effect on the editor itself.) I know if I used a copy of editor.css, I'd have to reconcile it after any upgrade, but that still seems clearer and easier to remember two years from now than one or more edited files buried somewhere in the mothership.
Sorry if this is answered somewhere obvious. I've looked for several hours now but I'm on the end of a multi-day burn and may not be at my best.
Re: Zenmost way to override source-editor CSS
I'm not overlooking some config option to load an alternate editor.css, am I?