Skip to content

Commit

Permalink
Merge pull request #241 from selvan/master
Browse files Browse the repository at this point in the history
Fixes for handling paste of copied content from Google sheet and docs
  • Loading branch information
neilj authored and seonim-ryu committed Feb 5, 2020
1 parent d4e1427 commit 6059194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/Squire/source/Clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var styleToSemantic = {
}
},
fontWeight: {
regexp: /^bold/i,
regexp: /^bold|^700/i,
replace: function ( doc ) {
return createElement( doc, 'B' );
}
Expand Down Expand Up @@ -178,7 +178,7 @@ var stylesRewriters = {
}
};

var allowedBlock = /^(?:A(?:DDRESS|RTICLE|SIDE|UDIO)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|IGCAPTION|OOTER)|H[1-6]|HEADER|L(?:ABEL|EGEND|I)|O(?:L|UTPUT)|P(?:RE)?|SECTION|T(?:ABLE|BODY|D|FOOT|H|HEAD|R)|UL)$/;
var allowedBlock = /^(?:A(?:DDRESS|RTICLE|SIDE|UDIO)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|IGCAPTION|OOTER)|H[1-6]|HEADER|L(?:ABEL|EGEND|I)|O(?:L|UTPUT)|P(?:RE)?|SECTION|T(?:ABLE|BODY|D|FOOT|H|HEAD|R)|COL(?:GROUP)?|UL)$/;

var blacklist = /^(?:HEAD|META|STYLE)/;

Expand Down

0 comments on commit 6059194

Please sign in to comment.