Control Toolbar on client

2 posts, 0 answers
  1. HelloULi
    HelloULi avatar
    6 posts
    Member since:
    Mar 2007

    Posted 25 Apr 2008 Link to this post

    If I can control the toolbar button's visibility on the clientside ? I have search in the documents, but I can only find the method to set its state.
  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 28 Apr 2008 Link to this post


    I don't think you have the option to control the visibility of a button on the client. Clearly, you can set the enabled or disabled state, but to "hide" a button in the Editor you problem need to remove it on the server. Check out this article for help:

    You could, of course, use Ajax to make this process seamless, but there is no pure client-side API for hiding buttons, nor is there a "hidden" button state you can set on the server.

    Hopefully this helps.

Back to Top