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:
parent
68618b1e5d
commit
23375d4422
1 changed files with 1 additions and 1 deletions
|
@ -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' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue