User talk:Gerbrant/gui/htmlEdit.js


 * Gerbrant.gui.htmlEdit
 * A WYSIWYG HTML editing control that can be used by other scripts.
 * If the script is loaded, you can test it by pasting the following in the address bar:

javascript:void document.body.appendChild(new Gerbrant.gui.htmlEdit("Some &lt;b&gt;bold&lt;/b&gt; and &lt;i&gt;cursive&lt;/i&gt; text.").getElement);

Constructor

 * function(html, width, height, onload)
 * Constructs an HTML editing control.
 * html
 * The control can be preloaded with some HTML. Note that no full HTML file can be specified, only the body text.
 * width
 * The desired width of the control. Defaults to "100%".
 * height
 * The desired height of the control. Defaults to "10em".
 * onload
 * A function to call when the control has finished loading and the content is editable.

Object members

 * getElement
 * Returns the HTML element of the control, for insertion in the HTML object using the DOM.


 * getHTML
 * Returns the HTML text of the control. Only available when the content is editable.


 * setHTML
 * Sets the HTML text of the control. Only available when the content is editable.