Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import { undo } from 'prosemirror-history'; |
||
6 | export default class UndoMenuItemDispatcher extends AbstractMenuItemDispatcher { |
||
7 | // history should be available regardless of current schema |
||
8 | static isAvailable() { |
||
9 | return true; |
||
10 | } |
||
11 | |||
12 | static getMenuItem() { |
||
13 | return new MenuItem({ |
||
14 | command: undo, |
||
15 | icon: svgIcon('undo'), |
||
16 | label: LANG.plugins.prosemirror['label:undo'], |
||
|
|||
17 | }); |
||
18 | } |
||
19 | } |
||
20 |
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.