Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 11 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | View Code Duplication | import { toggleHeaderCell } from 'prosemirror-tables'; |
|
11 | static getMenuItem(schema) { |
||
12 | if (!this.isAvailable(schema)) { |
||
13 | throw new Error('Table not available in schema!'); |
||
14 | } |
||
15 | |||
16 | return new MenuItem({ |
||
17 | command: toggleHeaderCell, |
||
18 | icon: svgIcon('table-border'), |
||
19 | label: LANG.plugins.prosemirror['label:table-cell-header-toggle'], |
||
20 | }); |
||
21 | } |
||
22 | } |
||
23 |