@atlaskit/editor-plugin-custom-autoformat
Version:
Custom autoformat plugin for @atlaskit/editor-core
14 lines (13 loc) • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.pluginKey = exports.getPluginState = exports.autoformatAction = void 0;
var _state = require("@atlaskit/editor-prosemirror/state");
var pluginKey = exports.pluginKey = new _state.PluginKey('customAutoformatPlugin');
var getPluginState = exports.getPluginState = function getPluginState(editorState) {
return pluginKey.getState(editorState);
};
var autoformatAction = exports.autoformatAction = function autoformatAction(tr, action) {
return tr.setMeta(pluginKey, action);
};