294d1daeaa19b471c9448ce1110c76d07b83a46bac0f48eb5ee61620bbef7ba7e1ae390fc343a054c1a5754b9340a75f5ada97c9de9a0f7c990cceb605a599 449 B

12345678910111213141516171819
  1. import Inline from '../blots/inline.js';
  2. class Bold extends Inline {
  3. static blotName = 'bold';
  4. static tagName = ['STRONG', 'B'];
  5. static create() {
  6. return super.create();
  7. }
  8. static formats() {
  9. return true;
  10. }
  11. optimize(context) {
  12. super.optimize(context);
  13. if (this.domNode.tagName !== this.statics.tagName[0]) {
  14. this.replaceWith(this.statics.blotName);
  15. }
  16. }
  17. }
  18. export default Bold;
  19. //# sourceMappingURL=bold.js.map