[evolution] EHTMLEditorSelection - When removing the elements use by composer for quoted content remove all of t



commit cdeae22ae3b58b5e2ddd3c89767a051e4c04a74f
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Jun 30 13:31:55 2014 +0200

    EHTMLEditorSelection - When removing the elements use by composer for quoted content remove all of them

 e-util/e-html-editor-selection.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index a351925..06cea06 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -1608,6 +1608,12 @@ remove_quoting_from_element (WebKitDOMElement *element)
                remove_node (node);
        }
 
+       list = webkit_dom_element_query_selector_all (
+               element, "br.-x-evo-temp-br", NULL);
+       length = webkit_dom_node_list_get_length (list);
+       for (ii = 0; ii < length; ii++)
+               remove_node (webkit_dom_node_list_item (list, ii));
+
        webkit_dom_node_normalize (WEBKIT_DOM_NODE (element));
 }
 


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