1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/quill/blots/break.js

30 lines
408 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
import Parchment from 'parchment';
class Break extends Parchment.Embed {
static value() {
return undefined;
}
insertInto(parent, ref) {
if (parent.children.length === 0) {
super.insertInto(parent, ref);
} else {
this.remove();
}
}
length() {
return 0;
}
value() {
return '';
}
}
Break.blotName = 'break';
Break.tagName = 'BR';
export default Break;