Publisher is EE6 compatible, but it does not support the Fluid field. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Config question - stylesCombo

Status Resolved
Add-on / Version
Severity Trivial
EE Version

Colin Kirsopp

May 09, 2012

I’m trying to put custom items into the stylescombo using the default wysiwyg.js.

Any changes I make aren’t reflected in the editor.  I also notice that you’re default values from this file weren’t being reflected either.  It seems to be getting its defaults from elsewhere.

It is, however, reflecting changes to the wysiwyg.css in the styling of the editor content.

#1

BoldMinded (Brian)

May 09, 2012

Hi Colin. Do you get any errors in Firebug/Console? Perhaps it isn’t finding the wysiwyg.js file? If you view the source of the control panel page look for init_wyvern, can you paste the config object? It will look something like this:

var wyvern = CKEDITOR.replace(config.field_id, {
                toolbar: toolbar
                , resize_enabled: config.resizable
                , height: config.height
                , customConfig: "http://mysite.com/themes/third_party/wyvern/config.js"
                , contentsCss: ["http://mysite.com/themes/third_party/wyvern/skins/ee/contents.css", "http://mysite.com/themes/third_party/wyvern/skins/ee/contents-wymeditor-style.css","mysite.com/themes/third_party/wyvern/skins/ee/contents-wymeditor-style-modern.css","http://mysite.com/assets/wysiwyg/wysiwyg.css"]
                , contentsLangDirection: config.text_direction
                , stylesCombo_stylesSet: "wyvern:http://mysite.com/assets/wysiwyg/wysiwyg.js", bodyClass: "wysiwyg"
            });
#2

Colin Kirsopp

May 09, 2012

Thanks for the quick reply. 

No javascript errors.  Here’s the config object.

        var wyvern = CKEDITOR.replace(config.field_id, {
          toolbar: toolbar
          , resize_enabled: config.resizable
          , height: config.height
          , customConfig: “http://www.ibfnetwork.com/themes/third_party/wyvern/config.js”
          , contentsCss: [“http://www.ibfnetwork.com/themes/third_party/wyvern/skins/ee/contents.css”, “http://www.ibfnetwork.com/themes/third_party/wyvern/skins/ee/contents-wymeditor-style.css”,“http://www.ibfnetwork.com/themes/third_party/wyvern/skins/ee/contents-wymeditor-style-modern.css”,“http://www.ibfnetwork.com/themes/third_party/wyvern/wysiwyg.css”]
          , contentsLangDirection: config.text_direction
          , stylesCombo_stylesSet: “wyvern:http://www.ibfnetwork.com/themes/third_party/wyvern/wysiwyg.js”, pasteFromWordPromptCleanup: true, forcePasteAsPlainText: true
        });

#3

Colin Kirsopp

May 09, 2012

After a round of EE and add-on updates, changing file names for the CSS and JS files and clearing all of the caches, this is now working.

I’m not sure what did the trick.

Login to reply