From 4fbf5d8beeef6111aa8d99320d4c624537ceb239 Mon Sep 17 00:00:00 2001 From: Luiz Edmundo Mizutani Date: Fri, 9 Aug 2019 16:31:40 -0300 Subject: [PATCH] Add style match for underline and strike --- modules/clipboard.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/clipboard.js b/modules/clipboard.js index 1483683dc7..cc45d9edf0 100644 --- a/modules/clipboard.js +++ b/modules/clipboard.js @@ -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