12345678910111213141516171819202122232425 |
- import { EmbedBlot } from 'parchment';
- class Break extends EmbedBlot {
- static value() {
- return undefined;
- }
- optimize() {
- if (this.prev || this.next) {
- this.remove();
- }
- }
- length() {
- return 0;
- }
- value() {
- return '';
- }
- }
- Break.blotName = 'break';
- Break.tagName = 'BR';
- export default Break;
|