1.0.5 • Published 1 year ago

@curvenote/prosemirror-utils v1.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Utils library for ProseMirror

@curvenote/prosemirror-utils on npm License CI

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