@curvenote/prosemirror-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i @curvenote/prosemirror-utils

Weekly Downloads

379

Version

1.0.5

License

Apache-2.0

Unpacked Size

103 kB

Total Files

33

Last publish

Collaborators

  • fwkoch
  • rowanc1
  • stevejpurves