Configuring the CKEditor

Hi. I’m trying to configure the CKEditor following the instructions in the documentation (

I did what is stated in the “Defining your own content style sheet (CSS)”. My own style sheet do appear but the Litium configured editor doesn’t load, instead you get the CKEditor full version.

I dug around on the forum and found and found a way forward. This brings back (as it seems) the Litium configuration.

(function () {
CKEDITOR.plugins.addExternal('stylesheetparser', '/Site/Editor/plugins/stylesheetparser/');

(function () {
var old = CKEDITOR.editorConfig;
CKEDITOR.editorConfig = function (config) {
    config.extraPlugins = 'stylesheetparser';

The problem is that the link-button now has stopped working. When pushing the button I get a javascript error :

Am I doing anything wrong?

I think you need to append the plugin to the current extraPlugins set, try using += instead.

That gives another error.
I believe I got the plugin working before, the problem is that the Litium implementation of the “Link”-button stops working.

Sorry, you also need to add an , before the new plugin. So in total: config.extraPlugins += ',stylesheetparser';

Hm, yeah the error is gone and the link button is working. The problem is that the stylesheetparser plugin doesn’t seem to work anymore. :upside_down_face:

Anyone else has any input?

Please config the extraPlugins to be this one to remove the default divArea plugin:

config.extraPlugins = "stylesheetparser,iframedialog";

Thanks, that did the trick!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.