1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
449 B
JavaScript

import Inline from '../blots/inline.js';
class Bold extends Inline {
static blotName = 'bold';
static tagName = ['STRONG', 'B'];
static create() {
return super.create();
}
static formats() {
return true;
}
optimize(context) {
super.optimize(context);
if (this.domNode.tagName !== this.statics.tagName[0]) {
this.replaceWith(this.statics.blotName);
}
}
}
export default Bold;
//# sourceMappingURL=bold.js.map