mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / OnAfterExecCommand Event

The CSS3 Selector applying the command.

Command arguments.

In This Topic
    OnAfterExecCommand Event
    In This Topic
    Description

    Fired after ExceCommand works are done.

    Syntax
    Visual Basic
    Public Event OnAfterExecCommand( _
       ByVal Command As EDIT_COMMANDS, _
       ByVal Selector As String, _
       ByVal Arguments As String _
    )
    Parameters
    Command
    ValueDescription
    EDIT_CMD_BACKCOLOR

    Changes the document background color. In styleWithCss mode, it affects the background color of the containing block instead. This requires a color value string to be passed in as a value argument. Note that Internet Explorer uses this to set the text background color.

    EDIT_CMD_BOLD

    Toggles bold on/off for the selection or at the insertion point.

    EDIT_CMD_CONTENTREADONLY

    Makes the content document either read-only or editable. This requires a Boolean true/false as the value argument.

    EDIT_CMD_COPY

    Copies the current selection to the clipboard. Conditions of having this behavior enabled vary from one browser to another, and have evolved over time. Check the compatibility table to determine if you can use it in your case.

    EDIT_CMD_CREATELINK

    Creates an hyperlink from the selection, but only if there is a selection. Requires a URI string as a value argument for the hyperlink's href. The URI must contain at least a single character, which may be whitespace.

    EDIT_CMD_CUT

    Removes the current selection and copies it to the clipboard. When this behavior is enabled varies between browsers, and its conditions have evolved over time.

    EDIT_CMD_DECREASEFONTSIZE

    Adds a <small> tag around the selection or at the insertion point.

    EDIT_CMD_DELETE

    Deletes the current selection.

    EDIT_CMD_ENABLEINLINETABLEEDITING

    Enables or disables the table row/column insertion and deletion controls.

    EDIT_CMD_ENABLEOBJECTRESIZING

    Enables or disables the resize handles on images, tables, and absolutely-positioned elements and other resizable objects.

    EDIT_CMD_FONTNAME

    Changes the font name for the selection or at the insertion point. This requires a font name string (like "Arial") as a value argument.

    EDIT_CMD_FONTSIZE

    Changes the font size for the selection or at the insertion point. This requires an integer from 1-7 as a value argument.

    EDIT_CMD_FORECOLOR

    Changes a font color for the selection or at the insertion point. This requires a hexadecimal color value string as a value argument.

    EDIT_CMD_FORMATBLOCK

    Adds an HTML block-level element around the line containing the current selection, replacing the block element containing the line if one exists (in Firefox, <blockquote> is the exception — it will wrap any containing block element). Requires a tag-name string as a value argument. Virtually all block-level elements can be used. (Internet Explorer and Edge support only heading tags H1–H6, ADDRESS, and PRE, which must be wrapped in angle brackets, such as "<H1>".)

    EDIT_CMD_FORWARDDELETE

    Deletes the character ahead of the cursor's position, identical to hitting the Delete key on a Windows keyboard.

    EDIT_CMD_GET_URLGet main browser frame URL.
    EDIT_CMD_HEADING

    Adds a heading element around a selection or insertion point line. Requires the tag-name string as a value argument (i.e. "H1", "H6").

    EDIT_CMD_HILITECOLOR

    Changes the background color for the selection or at the insertion point. Requires a color value string as a value argument. useCSS must be true for this to function.

    EDIT_CMD_INCREASEFONTSIZE

    Adds a <big> tag around the selection or at the insertion point.

    EDIT_CMD_INDENT

    Indents the line containing the selection or insertion point. In Firefox, if the selection spans multiple lines at different levels of indentation, only the least indented lines in the selection will be indented.

    EDIT_CMD_INSERTBRONRETURN

    Controls whether the Enter key inserts a <br> element, or splits the current block element into two.

    EDIT_CMD_INSERTHORIZONTALRULE

    Inserts a <hr> element at the insertion point, or replaces the selection with it.

    EDIT_CMD_INSERTHTML

    Inserts an HTML string at the insertion point (deletes selection). Requires a valid HTML string as a value argument.

    EDIT_CMD_INSERTIMAGE

    Inserts an image at the insertion point (deletes selection). Requires a URL string for the image's src as a value argument. The requirements for this string are the same as createLink.

    EDIT_CMD_INSERTORDEREDLIST

    Creates a numbered ordered list for the selection or at the insertion point.

    EDIT_CMD_INSERTPARAGRAPH

    Inserts a paragraph around the selection or the current line.

    EDIT_CMD_INSERTTEXT

    Inserts the given plain text at the insertion point (deletes selection).

    EDIT_CMD_INSERTUNORDEREDLIST

    Creates a bulleted unordered list for the selection or at the insertion point.

    EDIT_CMD_ITALIC

    Toggles italics on/off for the selection or at the insertion point. (Internet Explorer uses the <em> element instead of <i>.)

    EDIT_CMD_JUSTIFYCENTER

    Centers the selection or insertion point.

    EDIT_CMD_JUSTIFYFULL

    Justifies the selection or insertion point.

    EDIT_CMD_JUSTIFYLEFT

    Justifies the selection or insertion point to the left.

    EDIT_CMD_JUSTIFYRIGHT

    Right-justifies the selection or the insertion point.

    EDIT_CMD_OUTDENT

    Outdents the line containing the selection or insertion point.

    EDIT_CMD_PASTE

    Pastes the clipboard contents at the insertion point (replaces current selection). Disabled for web content.

    EDIT_CMD_REDO

    Redoes the previous undo command.

    EDIT_CMD_REMOVEFORMAT

    Removes all formatting from the current selection.

    EDIT_CMD_SEL_ALL_CHILDREN

    Adds all the children of the specified node to the selection. Previous selection is lost.

    EDIT_CMD_SEL_COLLAPSE_TO_ENDCollapses the selection to the end of the last range in the selection. If the content of the selection is focused and editable, the caret will blink there.
    EDIT_CMD_SEL_COLLAPSE_TO_STARTCollapses the selection to the start of the first range in the selection. If the content of the selection is focused and editable, the caret will blink there.
    EDIT_CMD_SEL_DELETEDeletes the selected text from the document's DOM.
    EDIT_CMD_SEL_EMPTY

    Removes all ranges from the selection.

    EDIT_CMD_SEL_EXTEND

    Moves the focus of the selection to a specified point. The anchor of the selection does not move. The selection will be from the anchor to the new focus, regardless of direction. The CSS3 Selector argument used to specify the node within which the focus will be moved. It requires the offset position within node where the focus will be moved to. If not specified, the default value 0 is used.

    EDIT_CMD_SEL_GET_COLLAPSED

    Returns a Boolean which indicates whether or not there is currently any text selected. No text is selected when the selection's start and end points are at the same position in the content.

    EDIT_CMD_SEL_GET_CONTAINS_NODEIndicates if the node is part of the selection. This requires a CSS3 Selector.
    EDIT_CMD_SEL_GET_FONT_BACK_COLORReads selection back color.
    EDIT_CMD_SEL_GET_FONT_BOLDReads selection bold style.
    EDIT_CMD_SEL_GET_FONT_COLORReads selection font color.
    EDIT_CMD_SEL_GET_FONT_ITALICReads selection italic style.
    EDIT_CMD_SEL_GET_FONT_NAMEReads selection font name.
    EDIT_CMD_SEL_GET_FONT_SIZEReads selection font size.
    EDIT_CMD_SEL_GET_FONT_STRIKETHROUGHReads selection strike style.
    EDIT_CMD_SEL_GET_FONT_UNDERLINEReads selection underline.
    EDIT_CMD_SEL_GET_HTMLReads selection HTML markup.
    EDIT_CMD_SEL_GET_TEXTReads selection Text contents.
    EDIT_CMD_SEL_GET_TYPEReads selection type. This return none, caret or range.
    EDIT_CMD_SEL_SET_FONT_BACK_COLORSets the font background color of selection. This requires a value for setting the background style property of selection range elements.
    EDIT_CMD_SEL_SET_FONT_BOLDSets the bold style of selection. This requires a value for setting the fontWeight style property of selection range elements.
    EDIT_CMD_SEL_SET_FONT_COLORSets the font color of selection. This requires a value for setting the color style property of selection range elements.
    EDIT_CMD_SEL_SET_FONT_ITALICSets the italic style of selection. This requires a value for setting the fontStyle style property of selection range elements.
    EDIT_CMD_SEL_SET_FONT_NAMESets the font name of selection. This requires a value for setting the fontFamily style property of selection range elements.
    EDIT_CMD_SEL_SET_FONT_SIZESets the font size of selection. This requires a value for setting the fontSize style property of selection range elements.
    EDIT_CMD_SEL_SET_FONT_STRIKETHROUGHSets the strike style of selection. This requires a value for setting the textDecoration style property of selection range elements.
    EDIT_CMD_SEL_SET_FONT_UNDERLINESets the bold style of selection. This requires a value for setting the textDecoration style property of selection range elements.
    EDIT_CMD_SEL_SET_HTMLReplaces selection markup with new HTML markup.
    EDIT_CMD_SEL_SET_TEXTReplaces selection text with new text contents.
    EDIT_CMD_SELECTALL

    Selects all of the content of the editable region.

    EDIT_CMD_STRIKETHROUGH

    Toggles strikethrough on/off for the selection or at the insertion point.

    EDIT_CMD_STYLEWITHCSS

    Toggles the use of HTML tags or CSS for the generated markup. Requires a Boolean true/false as a value argument.

    EDIT_CMD_SUBSCRIPT

    Toggles subscript on/off for the selection or at the insertion point.

    EDIT_CMD_SUPERSCRIPT

    Toggles superscript on/off for the selection or at the insertion point.

    EDIT_CMD_TABLE_DELETEDeletes a Table. This requires a CSS3 Selector.
    EDIT_CMD_TABLE_INSERTInserts a Table. This requires a CSS3 Selector of the parent element in which the Table will be added. If CSS3 selector is missing and in Edit Mode, the Table will be added to the caret position.
    EDIT_CMD_TABLE_INSERT_COLInserts a Column to a Table. This requires a CSS3 Selector of a TD element before which the Column will be added. If CSS3 selector is missing and in Edit Mode, the Column will be added to the caret position or before the selected Column.
    EDIT_CMD_TABLE_INSERT_ROWInserts a Row to a Table. This requires a CSS3 Selector of a TD element above which the Row will be added. If CSS3 selector is missing and in Edit Mode, the Row will be added to the caret position or before the selected Row.
    EDIT_CMD_TABLE_MERGEMerges selected rows and columns of a Table.
    EDIT_CMD_TABLE_REMOVE_COLDeletes an entire Column from a Table. This requires a CSS3 Selector of a TD element of the Column that will be deleted. If CSS3 selector is missing and in Edit Mode, the Column of the caret position or the selected Columns are deleted.
    EDIT_CMD_TABLE_REMOVE_ROWDeletes an entire Row from a Table. This requires a CSS3 Selector of a TD element of the Row that will be deleted. If CSS3 selector is missing and in Edit Mode, the Row of the caret position or the selected Row are deleted.
    EDIT_CMD_TABLE_SPLIT_HORIZSplits merged Table cells horizontally.
    EDIT_CMD_TABLE_SPLIT_VERTSplits merged Table cells vertically.
    EDIT_CMD_UNDERLINE

    Toggles underline on/off for the selection or at the insertion point.

    EDIT_CMD_UNDO

    Undoes the last executed command.

    EDIT_CMD_UNLINK

    Removes the anchor element from a selected hyperlink.

    EDIT_CMD_UNSELECTUnselects text contents.
    EDIT_CMD_USECSS

    Toggles the use of HTML tags or CSS for the generated markup. Requires a Boolean true/false as a value argument.

    Selector

    The CSS3 Selector applying the command.

    Arguments

    Command arguments.

    See Also