UNPKG

@atlaskit/editor-plugin-help-dialog

Version:

Help Dialog plugin for @atlaskit/editor-core

13 lines 312 B
import { pluginKey } from './plugin-key'; export const openHelpCommand = (tr, dispatch) => { tr = tr.setMeta(pluginKey, true); if (dispatch) { dispatch(tr); return true; } return false; }; export const closeHelpCommand = (tr, dispatch) => { tr = tr.setMeta(pluginKey, false); dispatch(tr); };