0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Preserve 'bold' font style while copy & pasting from Google Docs. Google docs uses numeric value 700 as font-weight for bold instead of string value 'bold'

This commit is contained in:
selvan 2016-09-29 11:37:25 +05:30
parent 68618b1e5d
commit 23375d4422

View file

@ -30,7 +30,7 @@ var styleToSemantic = {
} }
}, },
fontWeight: { fontWeight: {
regexp: /^bold/i, regexp: /^bold|^700/i,
replace: function ( doc ) { replace: function ( doc ) {
return createElement( doc, 'B' ); return createElement( doc, 'B' );
} }