Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "wed/input-trigger-factory"

Index

Functions

makeSplitMergeInputTrigger

  • Makes an input trigger that splits and merges consecutive elements.

    Parameters

    • editor: EditorAPI

      The editor for which to create the input trigger.

    • mode: Mode
    • selector: GUISelector

      A CSS selector that determines which element we want to split or merge. For instance, to operate on all paragraphs, this parameter could be "p". This selector must be fit to be used in the GUI tree.

    • splitKey: Key

      The key which splits the element.

    • mergeWithPreviousKey: Key

      The key which merges the element with its previous sibling.

    • mergeWithNextKey: Key

      The key which merges the element with its next sibling.

    Returns InputTrigger

    The input trigger.

splitNodeOn

  • splitNodeOn(editor: EditorAPI, data: SplitData): void
  • A transformation handler for a node splitting transformation.

    throws

    {Error} If the data passed is incorrect.

    Parameters

    • editor: EditorAPI

      The editor which invoked the transformation.

    • data: SplitData

      The key that is splitting the element.

    Returns void

Generated using TypeDoc