Declare requiredContent so other plugins can turn this off

Created on 4 May 2023, about 1 year ago

Problem/Motivation

We are developing a CKEditor widget that does not allow the markup generated here in some of its fields. We would like this plugin's button to be turned off when inside those fields.

Proposed resolution

Let's declare requiredContent so the editor can be aware of the incompatibility and turn the button off.

      const dialogCommand = new CKEDITOR.dialogCommand('quoteDialog');
      dialogCommand.requiredContent = 'blockquote';
      editor.addCommand('listicleheading', dialogCommand);
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

e0ipso Can Picafort

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024