SCEditor

createDropDown()

createDropDown(mItem, name, content) Since: 1.3.0

Creates a dropdown menu aligned to the to the menu item mItem.

Syntax

instance.createDropDown(mItem, name, content[, unselectable]);

Parameters

mItem
Type: Node

The menu button to align the drop down to.

name
Type: String

The name to give the dropdown. Will add the class sceditor-name to the dropdown.

content
Type: Node

The HTML content of the dropdown.

unselectable
Type: Boolean
Default: true

If to add the unselectable attribute to all the elements in the content. This stops IE from deselecting the text in the editor when an element is clicked.