@atlaskit/editor-plugin-show-diff
Version:
ShowDiff plugin for @atlaskit/editor-core
8 lines (7 loc) • 447 B
TypeScript
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
/**
* Looser equality for "safe diff" cases: same full text content and same block structure
* (e.g. text moved across text-node boundaries). Used when strict areNodesEqualIgnoreAttrs fails.
* This is safe because we ensure decorations get applied to valid positions.
*/
export declare function areDocsEqualByBlockStructureAndText(doc1: PMNode, doc2: PMNode): boolean;