Opened 17 years ago
Closed 16 years ago
#1099 closed New Feature (fixed)
Generate event to be able to customize dialogs from plugins
Reported by: | Alfonso Martínez de Lizarrondo | 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 (2)
comment:1 Changed 16 years ago by
Keywords: | Confirmed added; Discussion removed |
---|---|
Milestone: | → 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.