@curvenote/prosemirror-utils
v1.0.5
Published
Utils library for ProseMirror
Downloads
1,386
Readme
Utils library for ProseMirror
This is a port of prosemirror-utils to typescript and updating dependencies and build.
Quick Start
Install @curvenote/prosemirror-utils
package from npm:
npm install @curvenote/prosemirror-utils
Public API documentation
Utils for working with selection
@findParentNode
@findParentNodeClosestToPos
@findParentDomRef
@hasParentNode
@findParentNodeOfType
@findParentNodeOfTypeClosestToPos
@hasParentNodeOfType
@findParentDomRefOfType
@findSelectedNodeOfType
@isNodeSelection
@findPositionOfNodeBefore
@findDomRefAtPos
Utils for working with ProseMirror node
@flatten
@findChildren
@findTextNodes
@findInlineNodes
@findBlockNodes
@findChildrenByAttr
@findChildrenByType
@findChildrenByMark
@contains
Utils for document transformation
@removeParentNodeOfType
@replaceParentNodeOfType
@removeSelectedNode
@replaceSelectedNode
@canInsert
@safeInsert
@setParentNodeMarkup
@selectParentNodeOfType
@removeNodeBefore
@setTextSelection
License
- Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0