Hello everyone,
I discovered this project a few days ago and I must say I am amazed seeing how powerful it is!
I am currently trying to dev a plugin, and I would like to disable some toolbar buttons when the user is editing the content of my plugin tag (a SPAN actually).
By looking though the source code, i have found out that each button is linked to a 'Command', and the toolbar is refreshed every time the selection changes. What I would like to know is how when my SPAN tag is being edited, disable some commands.
This should be possible as when you place your pointer over a link, the unlink button is enable, and disabled after that (contrary of what I want though). I dont mind editing the source code if required.
Thanks,
HK
I discovered this project a few days ago and I must say I am amazed seeing how powerful it is!
I am currently trying to dev a plugin, and I would like to disable some toolbar buttons when the user is editing the content of my plugin tag (a SPAN actually).
By looking though the source code, i have found out that each button is linked to a 'Command', and the toolbar is refreshed every time the selection changes. What I would like to know is how when my SPAN tag is being edited, disable some commands.
This should be possible as when you place your pointer over a link, the unlink button is enable, and disabled after that (contrary of what I want though). I dont mind editing the source code if required.
Thanks,
HK
RE: How to disable toolbar items when edit pl
I'm looking for a way to control this to:
I need to be able to disable/enable all buttons as well as all the SELECT (Style, Format, Font, Size).
When disabling... then all elements in toolbar should be disabled.
When enabling... then all elements that should be enabled (depending on where cursor are/what are selected I guess)... should be enabled.
Anyone out there with a howto for this?
RE: How to disable toolbar items when edit pl
I have the same problem... I wan't to disable/enable "Save" button. Anyone know how to it? Maybe it is something ending with ".Disable();"... Thanks much
RE: How to disable toolbar items when edit pl
Sorry... I didn't look to the source code... I have it FCKToolbarItems.LoadedItems['Save'].Disable();