Plugin.ExecCommand.COMMANDS Class
Static object literal of execCommand overrides
Item Index
Methods
- addclass static
- backcolor static
- createlink static
- fontname2 static deprecated
- fontsize2 static deprecated
- forecolor static
- hilitecolor static
- insertandfocus static
- insertbr static
- inserthtml static
- insertimage static
- insertorderedlist static
- insertunorderedlist static
- justify static
- justifycenter static
- justifyfull static
- justifyleft static
- justifyright static
- list static
- removeclass static
- wrap static
Methods
addclass
-
cmd
-
cls
Add a class to all of the elements in the selection
Returns:
NodeList of the items touched by this command.
backcolor
-
cmd
-
val
Adds a background color to the current selection, or creates a new element and applies it
Returns:
NodeList of the items touched by this command.
createlink
-
cmd
Override for the createlink method from the CreateLinkBase plugin.
Parameters:
-
cmd
StringThe command executed: createlink
Returns:
Node instance of the item touched by this command.
fontname2
-
cmd
-
val
Adds a font name to the current selection, or creates a new element and applies it
Returns:
NodeList of the items touched by this command.
fontsize2
-
cmd
-
val
Adds a fontsize to the current selection, or creates a new element and applies it
Returns:
NodeList of the items touched by this command.
forecolor
-
cmd
-
val
Adds a forecolor to the current selection, or creates a new element and applies it
Returns:
NodeList of the items touched by this command.
hilitecolor
-
cmd
-
val
Sugar method, calles backcolor
Returns:
NodeList of the items touched by this command.
insertandfocus
-
cmd
-
html
Inserts the provided HTML at the cursor, and focuses the cursor afterwards.
Returns:
Node instance of the item touched by this command.
insertbr
-
cmd
Inserts a BR at the current cursor position
Parameters:
-
cmd
StringThe command executed: insertbr
inserthtml
-
cmd
-
html
Inserts the provided HTML at the cursor, should be a single element.
Returns:
Node instance of the item touched by this command.
insertimage
-
cmd
-
img
Inserts an image at the cursor position
Parameters:
Returns:
Node instance of the item touched by this command.
insertorderedlist
-
cmd
Overload for list
Parameters:
-
cmd
StringThe command executed: list, ul
insertunorderedlist
-
cmd
Overload for list
Parameters:
-
cmd
StringThe command executed: list, ol
justify
-
cmd
-
val
Noramlizes alignment for Webkit Browsers
justifycenter
()
static
Override method for justify
justifyfull
()
static
Override method for justify
justifyleft
()
static
Override method for justify
justifyright
()
static
Override method for justify
list
-
cmd
-
tag
Noramlizes lists creation/destruction for IE. All others pass through to native calls