UNPKG

@atlaskit/editor-plugin-paste

Version:

Paste plugin for @atlaskit/editor-core

8 lines (7 loc) 410 B
import { DOMParser as PMDOMParser } from '@atlaskit/editor-prosemirror/model'; import type { Schema } from '@atlaskit/editor-prosemirror/model'; /** * Creates a ProseMirror plugin with a custom `clipboardParser` that extends the * schema's default parser with additional rules for handling specific paste scenarios. */ export declare function createClipboardParser(schema: Schema): PMDOMParser | undefined;