Skip to content

Commit

Permalink
Add style match for underline and strike
Browse files Browse the repository at this point in the history
  • Loading branch information
edhowler authored and jhchen committed Aug 9, 2019
1 parent b5a7bdd commit 4fbf5d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,12 @@ function matchStyles(node, delta) {
if (style.fontStyle === 'italic') {
formats.italic = true;
}
if (style.textDecoration === 'underline') {
formats.underline = true;
}
if (style.textDecoration === 'line-through') {
formats.strike = true;
}
if (
style.fontWeight.startsWith('bold') ||
parseInt(style.fontWeight, 10) >= 700
Expand Down

0 comments on commit 4fbf5d8

Please sign in to comment.