Ckeditor4: Toolbar plugin should not be mandatory to register commands

Created on 26 Jul 2017  Â·  5Comments  Â·  Source: ckeditor/ckeditor4

Are you reporting a feature or a bug?

bug

Check if the issue is already reported

Put all reference links here…

Provide detailed reproduction steps (if any)

You can use this example: https://codepen.io/msamsel/pen/gxpOmy?editors=1010

  1. Remove toolbar.
  2. Register plugin with some command. Here is used link plugin.
  3. Open console, switch to proper iframe context.
  4. Check if command is registered: CKEDITOR.instances.editor.getCommand( 'link' );
  5. Try to run command from console: CKEDITOR.instances.editor.execCommand( 'link' );

Alternatively you can also check for keystrokes which should also run command here it will be:
Ctrl/Cmd+L

Expected result

Dialog with possibility for adding link will appear.

Actual result

Nothing happen.

Other details

  • CKEditor version: 4.7.1
  • Installed CKEditor plugins: link, wysiwygarea,
  • Disabled plugins: toolbar
confirmed bug

All 5 comments

Since #654 just became dependent on this issue, let's solve this issue ASAP. Also due to fact that it has been a PITA for a long, long time. 🙂

We at Neos CMS trigger commands via a custom toolbar (rendered in React) and execCommand, without adding any native CKE buttons. For now we have to use extraAllowedContent to work around the issue.

@dimaip I've extract the problem to separate issue. You can take look here: #1103. As @jswiderski mention it might be a little bit different problem.

Unfortunately, we need to postpone it together with #654 to 4.9.0 release. This is an important feature for us, but we can not block delay 4.8.0 release any further.

Why have this issue, and #654, both been removed from 4.9.0 milestone? @mlewand @msamsel

Was this page helpful?
0 / 5 - 0 ratings