Skip to content

Commit

Permalink
fix for slab#2585
Browse files Browse the repository at this point in the history
fixing this: CSS style text-decoration: underline and text-decoration: line-through should be converted
into HTML tags <u> and <s>
  • Loading branch information
edhowler authored Jul 11, 2019
1 parent f32aa5f commit 4aee43f
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 4aee43f

Please sign in to comment.