Ticket #1099 (closed New Feature: fixed)

Opened 7 years ago

Last modified 5 years ago

Generate event to be able to customize dialogs from plugins

Reported by: alfonsoml Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed Cc:

Description

The basic idea would be to raise an event each time a dialog is loaded, giving this way the ability to a plugin to customize the way that dialog works (for example changing the default value of some field, adding new fields or hiding existing ones).

Each time a dialog is loaded, in the call to window.parent.InnerDialogLoaded() it should pass the command that it's handling: window.parent.InnerDialogLoaded('link') or window.parent.InnerDialogLoaded('anchor'), etc...

Then an event will be raised from the FCK object sending as parameters the name of the command an a reference to the loaded window.

From that point, it's up to the plugin to do whatever it wants, and we should provide some samples about how to use it, but I guess that there can be some interesting ideas to improve the way some dialogs work for some people (like those that want to add presentational features like border colors and background images, or on the other side, remove all traces of such features and use only semantic elements), that we'll be able to see only after something like this is released.

Change History

comment:1 Changed 5 years ago by fredck

  • Keywords Confirmed added; Discussion removed
  • Milestone set to CKEditor 3.0

We have implemented this in the new API for CKEditor. Martin is working on #2790, which will demonstrate how to easily achieve such customizations without touching the original editor files.

comment:2 Changed 5 years ago by fredck

  • Status changed from new to closed
  • Resolution set to fixed

Fixed with [2990].

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy