@atlaskit/editor-plugin-custom-autoformat
Version:
Custom autoformat plugin for @atlaskit/editor-core
8 lines • 352 B
JavaScript
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
export var pluginKey = new PluginKey('customAutoformatPlugin');
export var getPluginState = function getPluginState(editorState) {
return pluginKey.getState(editorState);
};
export var autoformatAction = function autoformatAction(tr, action) {
return tr.setMeta(pluginKey, action);
};