TinyMCE:API/tinymce.ui.ListBox/selectByIndex
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: selectByIndex
(Requires: 3.2)
[edit]
Summary
Selects a item/option by index, -1 will select the title of the select box.
[edit]
Syntax
<void> selectByIndex(<Number> idx)
[edit]
Parameters
- idx
- Index to select inside the select box.
[edit]
Examples
// Selects the third item inside the styleselect control of the active editor
tinyMCE.activeEditor.controlManager.get('styleselect').selectByIndex(2);
