View Single Post
  #4 (permalink)  
Old 03-05-2007, 08:53 PM
rema rema is offline
Member
 
Posts: 13
Default customizing editor props

Hi,
We need to display an editor props in zimbra.
But we should have only a single button in the editor props.
just ok or cancel or close button.
How can we do this?
can u please help , and send us the code and the way to proceed.

Thanks a lot.




Quote:
Originally Posted by marcmac View Post
Did you read the spec?

If you've got something in your .xml file like this
Code:
    <userProperties>
        <property type="string" name="user" minLength="0" maxLength="32" label="Username" />
        <property type="password" name="pass" minLength="0" maxLength="32" label="Password" />
    </userProperties>
In your .js file, you can set them with this:
Code:
this.createPropertyEditor();
and refer to them:
Code:
this.getUserProperty("user");
this.getUserProperty("pass");
Reply With Quote