@atlaskit/editor-plugin-history
Version:
History plugin for @atlaskit/editor-core
10 lines (9 loc) • 402 B
JavaScript
import { PluginKey } from '@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
*/
export var historyPluginKey = new PluginKey('historyPlugin');