ProsemirrorEx.Model.Replace (prosemirror_ex v0.3.0)

Copy Markdown View Source

The replace algorithm for ProseMirror documents.

Ported from ProseMirror's replace.ts replace/replaceOuter/replaceThreeWay and related helper functions.

Summary

Functions

Replace the content between $from and $to with the given slice.

Functions

replace(from_pos, to_pos, slice)

Replace the content between $from and $to with the given slice.