setModeDescription Switches an editor to desired mode. Syntax object.setMode (string newMode); Parameter This sole parameter is a character string to represent the editor's state. The parameter should be of the following values. "CODE": html source code mode "EDIT": regular edit mode "TEXT": plain text mode "VIEW": preview mode Notes This function will switch mode of editor. Example: The following example will switch the editor named 'myEditor' to preview mode:
|