From 4aee43f225565fd136f3fa81a25ed1e5f233241b Mon Sep 17 00:00:00 2001 From: Luiz Edmundo Mizutani Date: Thu, 11 Jul 2019 16:03:57 -0300 Subject: [PATCH 1/2] fix for https://github.com/quilljs/quill/issues/2585 fixing this: CSS style text-decoration: underline and text-decoration: line-through should be converted into HTML tags and --- modules/clipboard.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/clipboard.js b/modules/clipboard.js index 1483683dc7..7be307378a 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 From a21686ac3d0a06d21623f3ad6c29d463c88caecd Mon Sep 17 00:00:00 2001 From: Luiz Edmundo Mizutani Date: Fri, 12 Jul 2019 18:31:59 -0300 Subject: [PATCH 2/2] Fixing ident Fixing ident. --- modules/clipboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/clipboard.js b/modules/clipboard.js index 7be307378a..cc45d9edf0 100644 --- a/modules/clipboard.js +++ b/modules/clipboard.js @@ -457,10 +457,10 @@ function matchStyles(node, delta) { formats.italic = true; } if (style.textDecoration === 'underline') { - formats.underline = true; + formats.underline = true; } if (style.textDecoration === 'line-through') { - formats.strike = true; + formats.strike = true; } if ( style.fontWeight.startsWith('bold') ||