It seems that a recent change to CKEditor 4.x has caused some buttons to be disabled even when specified in the list of toolbar buttons: http://ckeditor.com/forums/CKEditor/CKEditor4-Underline-button-not-appea...
I've noticed this behavior in our module as well. If you enabled the underline button in the admin, it never shows up in the toolbar when creating content.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | ckeditor_remove_buttons-1887174.patch | 725 bytes | quicksketch |
Comments
Comment #1
wim leersI'm 90% certain this is because of the default
config.jsfile, which contains this line::)
Comment #2
quicksketchOh, yes I meant to include a patch. I'll need to dig it up. We just need to add 'removeButtons' = '' to our function that adds the JS settings.
Comment #3
wwalc commentedJust to clarify this thing to anyone that will accidentally read this issue.
Each build of CKEditor (basic/standard/full) has its own configuration file, where we enable/disable certain features. In the "full preset", the configuration file does not make any changes: full-ckeditor-config.js
on the other side the configuration file in the basic package: basic-ckeditor-config.js does for example the following things:
- defines a single row toolbar, by adding no row separators between toolbarGroups (via config.toolbarGroups)
- removes some buttons (as you noticed)
- sets pasting as plain text as the default method
- removes the "Advanced" tab in the Link dialog to keep the whole editor simple.
Comment #4
izmeez commentedis there a patch to test? Thanks.
Comment #5
mermemladeK commentedThis is also happening for 7.x
Comment #6
quicksketchFixed in the 7.x version. I'm unpublishing the 8.x version since it's already part of core.
Comment #7
quicksketchHere's the patch that was committed.