[evolution/gnome-42] I#1918 - Composer: Skip STYLE and other tags in convert to Plain Text



commit cf74639d52dbab0a4eea53ca59f71e343247e3a1
Author: Milan Crha <mcrha redhat com>
Date:   Mon May 30 14:06:24 2022 +0200

    I#1918 - Composer: Skip STYLE and other tags in convert to Plain Text
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1918

 data/webkit/e-editor.js | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/data/webkit/e-editor.js b/data/webkit/e-editor.js
index 73b32f59b2..80f950865b 100644
--- a/data/webkit/e-editor.js
+++ b/data/webkit/e-editor.js
@@ -2325,7 +2325,17 @@ EvoEditor.convertTags = function()
                                        var div = document.createElement("DIV");
                                        EvoEditor.moveNodeContent(node, div);
                                        node.parentElement.insertBefore(div, node.nextSibling);
-                               } else {
+                               } else if (node.tagName != "APPLET" &&
+                                          node.tagName != "AUDIO" &&
+                                          node.tagName != "EMBED" &&
+                                          node.tagName != "NOFRAMES" &&
+                                          node.tagName != "NOSCRIPT" &&
+                                          node.tagName != "OBJECT" &&
+                                          node.tagName != "STYLE" &&
+                                          node.tagName != "SCRIPT" &&
+                                          node.tagName != "TEMPLATE" &&
+                                          node.tagName != "VAR" &&
+                                          node.tagName != "VIDEO") {
                                        next = EvoEditor.moveNodeContent(node);
                                }
                        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]