for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import { undo } from 'prosemirror-history';
import AbstractMenuItemDispatcher from './AbstractMenuItemDispatcher';
import { svgIcon } from '../MDI';
import MenuItem from '../MenuItem';
export default class UndoMenuItemDispatcher extends AbstractMenuItemDispatcher {
// history should be available regardless of current schema
static isAvailable() {
return true;
}
static getMenuItem() {
return new MenuItem({
command: undo,
icon: svgIcon('undo'),
label: LANG.plugins.prosemirror['label:undo'],
LANG
/** global: LANG */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
});
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.