@atlaskit/editor-plugin-code-block
Version:
Code block plugin for @atlaskit/editor-core
7 lines (6 loc) • 522 B
TypeScript
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
import type { EditorState, ReadonlyTransaction, Selection } from '@atlaskit/editor-prosemirror/state';
import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
export declare function getCursor(selection: Selection): ResolvedPos | undefined;
export declare function getAllCodeBlockNodesInDoc(state: EditorState): NodeWithPos[];
export declare function getAllChangedCodeBlocksInTransaction(tr: ReadonlyTransaction): NodeWithPos[] | null;