UNPKG

@atlaskit/editor-plugin-save-on-enter

Version:

Save-on-enter plugin for @atlaskit/editor-core

8 lines (7 loc) 511 B
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher'; import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin'; import type { EditorView } from '@atlaskit/editor-prosemirror/view'; import type { SaveOnEnterPlugin } from './saveOnEnterPluginType'; export type CreatePlugin = (eventDispatch: Dispatch, onSave?: (editorView: EditorView) => void) => SafePlugin | undefined; export declare const createPlugin: CreatePlugin; export declare const saveOnEnterPlugin: SaveOnEnterPlugin;