SCEditor

closeDropDown()

closeDropDown() Since: 1.3.0

Closes any currently open editor dropdown. If there is no currently open dropdown this does nothing.

Syntax

instance.closeDropDown([focus]);

Parameters

focus
Type: Boolean
Default: false

If to focus the editor after closing the drop down

Example

// Close the currently open dropdown if there is one
var textarea = ...;
sceditor.instance(textarea).closeDropDown();