toggle-inline-formatting-element

Type: Operation

Marks or unmarks a word or phrase with the given inline formatting, identified with data.nodeName.

Imported operation data

  1. nodeName

    (Required)

    Type: String

    The name of the node to be toggled.

  2. attributes

    (Required)

    Type: Object<string, (string|null)>

    (Optional) The new attributes of the node. Pass null as a value to remove the attribute.

    Default value

    Type: Object

    JSON

    {}
  3. [model]

    (Required)

    Type: Object

    (Optional) The model to be bound to the stencil after insertion.

  4. [overrideRange]

    (Required)

    The range to operate on instead of the selectionRange