UNPKG

@atlaskit/editor-plugin-history

Version:

History plugin for @atlaskit/editor-core

16 lines (14 loc) 540 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.historyPluginKey = void 0; var _state = require("@atlaskit/editor-prosemirror/state"); /** * Plugin that keeps track of whether undo and redo are currently available * This is needed so we can enable/disable controls appropriately * * Actual undo/redo functionality is handled by prosemirror-history: * https://github.com/ProseMirror/prosemirror-history */ var historyPluginKey = exports.historyPluginKey = new _state.PluginKey('historyPlugin');