UNPKG

363 BJavaScriptView Raw
1import { EmbedBlot } from 'parchment';
2class Break extends EmbedBlot {
3 static value() {
4 return undefined;
5 }
6 optimize() {
7 if (this.prev || this.next) {
8 this.remove();
9 }
10 }
11 length() {
12 return 0;
13 }
14 value() {
15 return '';
16 }
17}
18Break.blotName = 'break';
19Break.tagName = 'BR';
20export default Break;
21//# sourceMappingURL=break.js.map
\No newline at end of file