| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | View Code Duplication | import { setCellAttr } 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: setCellAttr('align', 'left'), |
||
| 18 | icon: svgIcon('format-align-left'), |
||
| 19 | label: LANG.plugins.prosemirror['label:table-cell-align-left'], |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |