UNPKG

@atlaskit/editor-plugin-submit-editor

Version:

Submit editor plugin for @atlaskit/editor-core

23 lines (22 loc) 598 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.submitEditorPlugin = void 0; var _main = require("./pm-plugins/main"); var submitEditorPlugin = exports.submitEditorPlugin = function submitEditorPlugin(_ref) { var onSave = _ref.config, api = _ref.api; return { name: 'submitEditor', pmPlugins: function pmPlugins() { return [{ name: 'submitEditor', plugin: function plugin(_ref2) { var dispatch = _ref2.dispatch; return (0, _main.createPlugin)(dispatch, api, onSave); } }]; } }; };