Summary : A List of JavaScript functions developers can use to program against FreeTextBox
Inserts HTML at the current cursor position
FTB_API['FreeTextBox1'].InsertHtml("blah <i>blah</i>");
Surrounds the currently selected text (and HTML) with the given strings
FTB_API['FreeTextBox1'].SurroundHtml("<i>before</i>","<u>after</u>");
Returns the HTML currently in the editor.
FTB_API['FreeTextBox1'].GetHtml();
Sets the HTML in the editor
FTB_API['FreeTextBox1'].SetHtml("some new HTML with a table: <table><tr><td>(0, 0)</td><td>(0, 1)</td></tr><tr><td>(1, 0)</td><td>(1, 1)</td></tr></table>");
Executes commands based on the MSHTML (for IE) and Midas (for Firefox/Mozilla) specifications
FTB_API['FreeTextBox1'].GetHtml('bold','',''); FTB_API['FreeTextBox1'].GetHtml('forecolor','','#ffcc00');
Querys the state of the current cursor position
FTB_API['FreeTextBox1'].GetHtml('forecolor');
Sets the focus on the current editor
FTB_API['FreeTextBox1'].Focus();
Sets the classname of current element or surrounds the current text with <span class="className">text</span>
FTB_API['FreeTextBox1'].SetStyle(className);
In .NET, set the ClientSideTextChanged property or in JavaScript set
FTB_API['FreeTextBox1'].clientSideTextChanged = myFunction; function myFunction(ftb) { // do something with FreeTextBox }