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:
-
cmd
StringThe command executed: addclass
-
cls
StringThe 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:
-
cmd
StringThe command executed: backcolor
-
val
StringThe 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:
-
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
Parameters:
-
cmd
StringThe command executed: fontname
-
val
StringThe 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:
-
cmd
StringThe command executed: fontsize
-
val
StringThe 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:
-
cmd
StringThe command executed: forecolor
-
val
StringThe color value to apply
Returns:
NodeList of the items touched by this command.
hilitecolor
-
cmd
-
val
Sugar method, calles backcolor
Parameters:
-
cmd
StringThe command executed: backcolor
-
val
StringThe 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:
-
cmd
StringThe command executed: insertandfocus
-
html
StringThe html to insert
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.
Parameters:
-
cmd
StringThe command executed: inserthtml
-
html
StringThe html to insert
Returns:
Node instance of the item touched by this command.
insertimage
-
cmd
-
img
Inserts an image at the cursor position
Parameters:
-
cmd
StringThe command executed: insertimage
-
img
StringThe url of the image to be inserted
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
Parameters:
-
cmd
StringThe command executed: justify (not used)
-
val
StringThe 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:
-
cmd
StringThe command executed: list (not used)
-
tag
StringThe tag to deal with