UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

6 lines (5 loc) 327 B
import type { NodeType } from '@atlaskit/editor-prosemirror/model'; import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state'; export declare const insertBlock: (state: EditorState, nodeType: NodeType, start: number, end: number, attrs?: { [key: string]: any; } | undefined) => Transaction | null;