| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { insertParagraphAtPos } from '../customCommands'; |
||
| 34 | export function getButtonSpec(viewID, direction) { |
||
| 35 | if (typeof LANG === 'undefined') { |
||
|
|
|||
| 36 | // early return during js schema testing |
||
| 37 | return []; |
||
| 38 | } |
||
| 39 | return [ |
||
| 40 | 'button', |
||
| 41 | { |
||
| 42 | class: 'addParagraphButton', |
||
| 43 | type: 'button', |
||
| 44 | 'data-direction': direction, |
||
| 45 | 'data-viewid': viewID, |
||
| 46 | }, |
||
| 47 | LANG.plugins.prosemirror['button:insert paragraph'], |
||
| 48 | ]; |
||
| 49 | } |
||
| 50 |
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.