On 28 Oct 2009, at 15:34, J. Tyler wrote:
> Is there a way to disable custom toolbar buttons and menu items when
> the
> user is on the Code tab?
Hi Joe,
There appears to be an undocumented option designViewOnly="true" which
you can specify in the configuration file. eg:
<menuItem name="test" designViewOnly="true"
action="InsertHTMLAtCursor" value="foo" text="Test" />
I can't guarantee that the attribute won't be taken away again in
future versions but even if it does it would just mean the menu item
is enabled again in code view. If you want the fully supported,
definitely won't break in future versions, you'd need to use the
Plugin APIs which gives you a whole heap of flexibility. See:
http://liveworks.ephox.com/hints-tips/advanced-custom-menu-itemsRegards,
Adrian Sutton.
______________________
Adrian Sutton, CTO
UK: +44 1 628 353 032 US: +1 (650) 292 9659 x717
Ephox
http://www.ephox.com/Ephox Blogs
http://planet.ephox.com/, Personal Blog
http://www.symphonious.net/_______________________________________________
[hidden email]
List instructions at
http://liveworks.ephox.com/mailing-list/