Ticket #1099 (closed New Feature: fixed)
Generate event to be able to customize dialogs from plugins
|Reported by:||alfonsoml||Owned by:|
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.