first commit
This commit is contained in:
19
public/assets/quill/formats/bold.js
Normal file
19
public/assets/quill/formats/bold.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user