Hi all!
We're attempting to make our implementation of CKEditor quite spare, yet functional. To this end, our design calls for a very minimal toolbar, plus an external (Bootstrap) set of dropdown menus.
The menus are wired to call
editor.execCommand(someCommand);
on our CKEditor instance. This works just fine for lots of commands (e.g., "bold", "italic", "table", "bulletedlist', "showblocks"), but fails for many others (e.g., "link", "anchor", "horizontalrule", 'scayt'). I've observed that I get the functionality back if I include certain buttons in the toolbar. For example, if I include the 'link' toolbar button, my execCommand('link') will work also.
This led me to try forcing the plugins in my editorConfig with (for example):
config.extraPlugins = 'link,scayt';
But this doesn't seem to do what I hoped it might. Can anyone recommend a recipe whereby I can get the functionality without adding buttons to the toolbar?
Many thanks!

I've come up with a very
I've come up with a very fugly workaround to this problem. If anyone has a better solution, I'd sure love to hear about it.
I've added the the offending buttons into my custom config.
[code]
config.toolbar_Basic = [
[ 'Bold', 'Italic', 'Underline', 'Strike' ],
[ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ],
[ 'Styles', 'Format' ],
[ 'Find'],
//HIDDEN (Has to be active to allow the functionalities)
['Link', 'PageBreak', 'HorizontalRule', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', 'Undo', 'Redo']];
[/code]
Then in CKEDITOR.replace...on...instanceReady, I find the span for this button-group and make it invisible:
[code]
$('.cke_toolbox >span:last-child').css({
visibility: 'hidden'
});
[/code]
There is nothing about this solution that makes me happy...it's just the best I've come up with.
I've tested right now and it
I've tested right now and it seems that I can execute any command without problems and without resorting to that kind of workarounds.
Thanks for your response
Thanks for your response alfonsoml.
Not sure what to make of that. I've updated to what I believe is the latest release (4.4.1), and we're not using any special plugins or skins. It's basically a simple implementation with nothing I'd think would be out-of-the-ordinary, but for the configuration of the toolbars. (Mind you, I'm not a CKEditor expert by any means)
Can you imagine anything I might be doing to inhibit the correct functionality?
Thanks!
If you haven't performed any
If you haven't performed any adjustments, then I guess that you haven't disabled the ACF, so that could be the cause of your problems.
Ah, ok. Looks like that does
Ah, ok. Looks like that does it!
I need to read up on this ACF feature. Burned a lot of time on that problem.
Thank you, my friend!
Honestly, in its current
Honestly, in its current implementation the only safe value is to disable it.
Many people suffer lots of problems until they find out that this is due to the ACF and then proceed to turn it off.