@@ -57,12 +57,7 @@ class Clipboard extends Module {
57
57
[ Node . ELEMENT_NODE , mQmatchAttributor ] ,
58
58
[ Node . ELEMENT_NODE , matchStyles ] ,
59
59
[ 'li' , matchIndent ] ,
60
-
61
- /*
62
- This bit has been commented out for @evercoder specifically,
63
- as we have a FontWeight attributor rather than a Bold blot.
64
- */
65
- // ['b', matchAlias.bind(matchAlias, 'bold')],
60
+ [ 'b' , matchAlias . bind ( matchAlias , 'bold' ) ] ,
66
61
[ 'i' , matchAlias . bind ( matchAlias , 'italic' ) ] ,
67
62
[ 'style' , matchIgnore ]
68
63
] . concat ( this . options . matchers ) . forEach ( ( [ selector , matcher ] ) => {
@@ -371,19 +366,10 @@ function matchStyles(node, delta) {
371
366
if ( style . fontStyle && computeStyle ( node ) . fontStyle === 'italic' ) {
372
367
formats . italic = true ;
373
368
}
374
-
375
- /*
376
-
377
- This bit has been commented out for @evercoder specifically,
378
- as we have a FontWeight attributor rather than a Bold blot.
379
-
380
- */
381
-
382
- // if (style.fontWeight && (computeStyle(node).fontWeight.startsWith('bold') ||
383
- // parseInt(computeStyle(node).fontWeight) >= 700)) {
384
- // formats.bold = true;
385
- // }
386
-
369
+ if ( style . fontWeight && ( computeStyle ( node ) . fontWeight . startsWith ( 'bold' ) ||
370
+ parseInt ( computeStyle ( node ) . fontWeight ) >= 700 ) ) {
371
+ formats . bold = true ;
372
+ }
387
373
if ( Object . keys ( formats ) . length > 0 ) {
388
374
delta = applyFormat ( delta , formats ) ;
389
375
}
0 commit comments