[evolution/wip/webkit2] EHTMLEditorSelection - Selection markers are saved on wrong position after Tabulator



commit 7b49d33fe08feabf35d713493eb74a09d4e1b2e3
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Feb 25 13:30:58 2016 +0100

    EHTMLEditorSelection - Selection markers are saved on wrong position after Tabulator

 .../e-html-editor-selection-dom-functions.c        |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c 
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index 217e870..7b80db9 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -1507,6 +1507,13 @@ dom_selection_save (WebKitDOMDocument *document)
                                NULL);
                        goto insert_end_marker;
                }
+       } else if (element_has_class (WEBKIT_DOM_ELEMENT (parent_node), "Apple-tab-span") && offset == 1) {
+                       marker_node = webkit_dom_node_insert_before (
+                               webkit_dom_node_get_parent_node (parent_node),
+                               WEBKIT_DOM_NODE (start_marker),
+                               webkit_dom_node_get_next_sibling (parent_node),
+                               NULL);
+                       goto insert_end_marker;
        }
 
        if (WEBKIT_DOM_IS_TEXT (container)) {


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