[evolution] EHTMLEditorView - Remove the right attributes when cleaning the BODY element after conversion



commit d3819eefb7f07841c994b4ec5f2347c9ae37378f
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Dec 4 15:44:07 2014 +0100

    EHTMLEditorView - Remove the right attributes when cleaning the BODY element after conversion

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 66261b7..9b6742c 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -4537,7 +4537,7 @@ clear_attributes (WebKitDOMDocument *document)
 
                name = webkit_dom_node_get_local_name (node);
 
-               if (g_str_has_prefix (name, "data-"))
+               if (!g_str_has_prefix (name, "data-") && (g_strcmp0 (name, "spellcheck") != 0))
                        webkit_dom_element_remove_attribute_node (
                                WEBKIT_DOM_ELEMENT (body),
                                WEBKIT_DOM_ATTR (node),


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