Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransformationData

Data passed to the transformation handler. The transformation types expect the following values for the parameters passed to a handler.

Transformation Type node is name is the name of the:
insert undefined (we insert at caret position) element to insert
delete-element element to delete element to delete
delete-parent element to delete element to delete
wrap undefined (we wrap the current selection) wrapping element
merge-with-next element to merge element to merge
merge-with-previous element to merge element to merge
swap-with-next element to swap element to swap
swap-with-previous element to swap element to swap
append element after which to append element after which to append
prepend element before which to prepend element before which to append
unwrap node to unwrap node to unwrap
add-attribute node to which an attribute is added attribute to add
delete-attribute attribute to delete attribute to delete
insert-text node to which text is added text to add

Hierarchy

Index

Properties

Properties

Optional e

The JavaScript event that triggered the transformation, if any.

Optional moveCaretTo

moveCaretTo: DLoc

A position to which the caret is moved before the transformation is fired. Wed performs the move. Should be set by the code that invokes the transformation.

Optional name

name: undefined | string

The name of the node to add, remove, etc. Should be set by the code that invokes the transformation.

Optional node

node: Node

The node to operate on. Should be set by the code that invokes the transformation. This may be undefined if the transformation should rely on the caret position.

Generated using TypeDoc