Plugin.ExecCommand.COMMANDS Class
Static object literal of execCommand overrides
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
Parameters:
-
cmdStringThe command executed: addclass
-
clsStringThe className to add
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
Parameters:
-
cmdStringThe command executed: backcolor
-
valStringThe color value to apply
Returns:
NodeList of the items touched by this command.
createlink
-
cmd
Override for the createlink method from the <a href="Plugin.CreateLinkBase.html">CreateLinkBase</a> plugin.
Parameters:
-
cmdStringThe 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
Parameters:
-
cmdStringThe command executed: fontname
-
valStringThe font name to apply
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
Parameters:
-
cmdStringThe command executed: fontsize
-
valStringThe font size to apply
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
Parameters:
-
cmdStringThe command executed: forecolor
-
valStringThe color value to apply
Returns:
NodeList of the items touched by this command.
hilitecolor
-
cmd -
val
Sugar method, calles backcolor
Parameters:
-
cmdStringThe command executed: backcolor
-
valStringThe color value to apply
Returns:
NodeList of the items touched by this command.
insertandfocus
-
cmd -
html
Inserts the provided HTML at the cursor, and focuses the cursor afterwards.
Parameters:
-
cmdStringThe command executed: insertandfocus
-
htmlStringThe html to insert
Returns:
Node instance of the item touched by this command.
insertbr
-
cmd
Inserts a BR at the current cursor position
Parameters:
-
cmdStringThe command executed: insertbr
inserthtml
-
cmd -
html
Inserts the provided HTML at the cursor, should be a single element.
Parameters:
-
cmdStringThe command executed: inserthtml
-
htmlStringThe html to insert
Returns:
Node instance of the item touched by this command.
insertimage
-
cmd -
img
Inserts an image at the cursor position
Parameters:
-
cmdStringThe command executed: insertimage
-
imgStringThe url of the image to be inserted
Returns:
Node instance of the item touched by this command.
insertorderedlist
-
cmd
Overload for list
Parameters:
-
cmdStringThe command executed: list, ul
insertunorderedlist
-
cmd
Overload for list
Parameters:
-
cmdStringThe command executed: list, ol
justify
-
cmd -
val
Noramlizes alignment for Webkit Browsers
Parameters:
-
cmdStringThe command executed: justify (not used)
-
valStringThe actual command from the justify{center,all,left,right} stubs
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
Parameters:
-
cmdStringThe command executed: list (not used)
-
tagStringThe tag to deal with