ReplaceStep
Replace a part of the document with a slice of new content.
class ReplaceStep extends Step {}
§Constructors
§
The given slice should fit the 'gap' between from and
to—the depths must line up, and the surrounding nodes must be
able to be joined with the open sides of the slice. When
structure is true, the step will fail if the content between
from and to is not just a sequence of closing and then opening
tokens (this is to guard against rebased replace steps
overwriting something they weren't supposed to).
§Properties
§Methods
§
apply(doc: Node): StepResult
[src]§
invert(doc: Node): ReplaceStep
[src]§
map(mapping: Mappable): ReplaceStep | null
[src]§
merge(other: Step): ReplaceStep | null
[src]