UNPKG

@atlaskit/editor-plugin-floating-toolbar

Version:

Floating toolbar plugin for @atlaskit/editor-core

15 lines (14 loc) 485 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createPlugin = void 0; var _safePlugin = require("@atlaskit/editor-common/safe-plugin"); var _pluginFactory = require("./plugin-factory"); var _pluginKey = require("./plugin-key"); var createPlugin = exports.createPlugin = function createPlugin(dispatch) { return new _safePlugin.SafePlugin({ state: (0, _pluginFactory.createPluginState)(dispatch, {}), key: _pluginKey.pluginKey }); };