1.0.3 • Published 2 years ago

prosemirror-utils1 v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Utils library for ProseMirror

prosemirror-utils1 on npm License CI

Note: this is a port of prosemirror-utils to typescript and updating dependencies and build.

Quick Start

Install prosemirror-utils1 package from npm:

npm install prosemirror-utils1

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