UNPKG

@atlaskit/editor-plugin-code-block

Version:

Code block plugin for @atlaskit/editor-core

11 lines (10 loc) 412 B
import type { EditorState } from '@atlaskit/editor-prosemirror/state'; import type { DecorationSet } from '@atlaskit/editor-prosemirror/view'; export type CodeBlockState = { contentCopied: boolean; decorations: DecorationSet; isNodeSelected: boolean; pos: number | null; shouldIgnoreFollowingMutations: boolean; }; export declare const getPluginState: (state: EditorState) => CodeBlockState;