After updating CKEditor, the Justify buttons went missing. Turns out in CKEditor 4, it was moved to a separate plugin.

The follow Stackoverflow answer addresses the exact issues I'm having:
http://stackoverflow.com/a/14810988/238851

By downloading the plugin from http://ckeditor.com/addon/justify and placing it in the sites/all/libraries/ckeditor/plugins directory and appending the following to the main ckeditor.js file, it worked.

jQuery(function() {
    CKEDITOR.config.extraPlugins = 'justify';
});   

When I added the new justify plugin to the plugins directory, the option appears in the Buttons and Plugins options for the CKEditor profile configurations. Ticking the "Justify" plugin does not seem to do anything. The only thing that worked for me was adding the above JS to the page.

This fix needs to be documented somewhere for others to find and know to download the additional plugin. This is temporary fix and is a bit nasty. The integrated plugin selection option needs to be fixed as a more permanent route. I'll look into providing a possible patch when I get some time.

CommentFileSizeAuthor
#4 ck-editor-4.4.1-full-toolbar.png7.38 KBPablo Gosse
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TwoD’s picture

Status: Active » Closed (works as designed)

The installation instructions on the profile overview page says to make sure you download the Full CKEditor package, which does include the Justify plugin.

Editing the main ckeditor.js file is discouraged. If you want to tell Wysiwyg about a new CKEditor plugin which isn't already supported internally by the Wysiwyg implementation, you can do so using hook_wysiwyg_plugin(), see wysiwyg.api.php for details on that. Doing so will make the plugin support usable by other sites (if kept in a separate module), no need to keep track of patches for the CKEditor library itself on upgrades, you can easily toggle the plugin/buttons on/off using the configuration GUI instead of having to modify files.

Once I have time, I'll make it possible for Wysiwyg to detect which package variant was installed an only show the ones actually available/installed - as opposed to all supported by Wysiwyg - in the editor configuration GUI.

cravecode’s picture

Now that the details of my issue have been reported and is searchable by others having the same problem, I think this issue can be closed. It is not a bug in the module.

Also, I'd like to say THANK YOU for such an awesome tool that I end up using almost every day.

tomohalloran’s picture

Issue summary: View changes

Many of the functions that are required for most, like justify or font control are only available on the "full" versions of CKEditor.
But only the current versions of CKEditor is there the option to download the full version from the CKEditor website.
I have tried the older versions available on the CKEditor website and they are not "full"

The problem is that Wysiwyg does not support current versions of CKEditor.

So does anyone know where i can get full older versions of CKEditor that are supported by Wysiwyg?

Pablo Gosse’s picture

You can download the full version of 4.4.1 at the following URL:

http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.4.1/ckeditor...

I'm seeing many of the buttons missing as well, as per the image below. Currently investigating.

CKEditor 4.4.1 full toolbar

Pablo Gosse’s picture

It's a browser cache issue. You'll need to clear all images from your browser cache and then the toolbar is properly rendered.

bradallenfisher’s picture