ReplaceAroundStep
Replace a part of the document with a slice of content, but preserve a range of the replaced content by moving it into the slice.
class ReplaceAroundStep extends Step {}
§Constructors
§
new ReplaceAroundStep(from: number, to: number, gapFrom: number, gapTo: number, slice: Slice, insert: number, structure?: boolean)
[src]Create a replace-around step with the given range and gap.
insert
should be the point in the slice into which the content
of the gap should be moved. structure
has the same meaning as
it has in the ReplaceStep
class.
§Properties
§Methods
§
apply(doc: Node): StepResult
[src]§
invert(doc: Node): ReplaceAroundStep
[src]§
map(mapping: Mappable): ReplaceAroundStep | null
[src]