UNPKG

@zodiac-ui/editor

Version:

A rich text editor for Angular based on `@atlaskit/editor-core`.

11 lines (10 loc) 520 B
/** * Finds all top level nodes affected by the transaction * Uses from/to positions in transaction's steps to work out which nodes will * be changed by the transaction */ import { Node } from "prosemirror-model"; import { Transaction } from "prosemirror-state"; export declare const findChangedNodesFromTransaction: (tr: Transaction<any>) => Node<any>[]; /** Validates prosemirror nodes, and returns true only if all nodes are valid */ export declare const validateNodes: (nodes: Node<any>[]) => boolean;