Hi people,
I love the product, keep on the good work! The only thing sincerely lacking is good documentation. Once I get the hang of the app, I'll volunteer for the wiki, which needs a looot of new docs
Anyway, I spend the last few days trying to find a way to add items to a combobox that is already loaded in the FCK Editor. Not sure why, but I couldn't find any reference on how to do this.
The premise is simple enough: create a new plugin, register it etc. Use the FCKToolbarSpecialCombo interface and add your own implementation of CreateItems. All that I looked for was a simple interface to _Combo.AddItem and/or _Combo.RemoveItem. Though only the first exists, I found no way to do this without hacking into the core.
Can anyone tell me a way to do something like the following:
oPlugin = oFCKEditor.getPlugin('myplugin');
oPlugin.AddItem(myItem);
oPlugin.RemoveItem(myItem);
the AddItem and RemoveItem are of course parts of your own plugin. Just getting the object that holds the plugin should help a lot I guess, the rest should be rather easy (I hope, I hope, I hope).
Best to you all!
-- Mandragora
Tue, 02/20/2007 - 13:45
#1