@atlaskit/editor-plugin-content-insertion
Version:
Content insertion plugin for @atlaskit/editor-core
23 lines (22 loc) • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.contentInsertionPlugin = void 0;
var _api = require("./pm-plugins/api");
/**
* Content insertion plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
* from `@atlaskit/editor-core`.
*/
var contentInsertionPlugin = exports.contentInsertionPlugin = function contentInsertionPlugin(_ref) {
var _api$analytics;
var api = _ref.api;
var _createInsertNodeAPI = (0, _api.createInsertNodeAPI)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions),
actions = _createInsertNodeAPI.actions,
commands = _createInsertNodeAPI.commands;
return {
name: 'contentInsertion',
actions: actions,
commands: commands
};
};