Version 3.17.2
Show:

Plugin.ExecCommand.COMMANDS Class

Module: exec-command
Parent Module: editor

Static object literal of execCommand overrides

Item Index

Methods

Methods

addclass

(
  • cmd
  • cls
)
NodeList static

Add a class to all of the elements in the selection

Parameters:

  • cmd String

    The command executed: addclass

  • cls String

    The className to add

Returns:

NodeList:

NodeList of the items touched by this command.

backcolor

(
  • cmd
  • val
)
NodeList static

Adds a background color to the current selection, or creates a new element and applies it

Parameters:

  • cmd String

    The command executed: backcolor

  • val String

    The color value to apply

Returns:

NodeList:

NodeList of the items touched by this command.

fontname2

(
  • cmd
  • val
)
NodeList deprecated static

Adds a font name to the current selection, or creates a new element and applies it

Parameters:

  • cmd String

    The command executed: fontname

  • val String

    The font name to apply

Returns:

NodeList:

NodeList of the items touched by this command.

fontsize2

(
  • cmd
  • val
)
NodeList deprecated static

Adds a fontsize to the current selection, or creates a new element and applies it

Parameters:

  • cmd String

    The command executed: fontsize

  • val String

    The font size to apply

Returns:

NodeList:

NodeList of the items touched by this command.

forecolor

(
  • cmd
  • val
)
NodeList static

Adds a forecolor to the current selection, or creates a new element and applies it

Parameters:

  • cmd String

    The command executed: forecolor

  • val String

    The color value to apply

Returns:

NodeList:

NodeList of the items touched by this command.

hilitecolor

(
  • cmd
  • val
)
NodeList static

Sugar method, calles backcolor

Parameters:

  • cmd String

    The command executed: backcolor

  • val String

    The color value to apply

Returns:

NodeList:

NodeList of the items touched by this command.

insertandfocus

(
  • cmd
  • html
)
Node static

Inserts the provided HTML at the cursor, and focuses the cursor afterwards.

Parameters:

  • cmd String

    The command executed: insertandfocus

  • html String

    The html to insert

Returns:

Node:

Node instance of the item touched by this command.

insertbr

(
  • cmd
)
static

Inserts a BR at the current cursor position

Parameters:

  • cmd String

    The command executed: insertbr

inserthtml

(
  • cmd
  • html
)
Node static

Inserts the provided HTML at the cursor, should be a single element.

Parameters:

  • cmd String

    The command executed: inserthtml

  • html String

    The html to insert

Returns:

Node:

Node instance of the item touched by this command.

insertimage

(
  • cmd
  • img
)
Node static

Inserts an image at the cursor position

Parameters:

  • cmd String

    The command executed: insertimage

  • img String

    The url of the image to be inserted

Returns:

Node:

Node instance of the item touched by this command.

insertorderedlist

(
  • cmd
)
static

Overload for list

Parameters:

  • cmd String

    The command executed: list, ul

insertunorderedlist

(
  • cmd
)
static

Overload for list

Parameters:

  • cmd String

    The command executed: list, ol

justify

(
  • cmd
  • val
)
static

Noramlizes alignment for Webkit Browsers

Parameters:

  • cmd String

    The command executed: justify (not used)

  • val String

    The 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
)
static

Noramlizes lists creation/destruction for IE. All others pass through to native calls

Parameters:

  • cmd String

    The command executed: list (not used)

  • tag String

    The tag to deal with

removeclass

(
  • cmd
  • cls
)
NodeList static

Remove a class from all of the elements in the selection

Parameters:

  • cmd String

    The command executed: removeclass

  • cls String

    The className to remove

Returns:

NodeList:

NodeList of the items touched by this command.

wrap

(
  • cmd
  • tag
)
NodeList static

Wraps the content with a new element of type (tag)

Parameters:

  • cmd String

    The command executed: wrap

  • tag String

    The tag to wrap the selection with

Returns:

NodeList:

NodeList of the items touched by this command.