[evolution] EHTMLEditorView - Caret is moved on end of block when pressing Backspace on its start



commit 8d6397796793a8aea8379ca3775f08622259c59c
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 31 13:42:17 2015 +0200

    EHTMLEditorView - Caret is moved on end of block when pressing Backspace on its start
    
    Don't insert the selection into newly created paragraph when its inner HTML
    contain the selection markers.

 e-util/e-html-editor-view.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 2aaf38f..309e432 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1178,8 +1178,10 @@ insert_new_line_into_citation (EHTMLEditorView *view,
                        WEBKIT_DOM_HTML_ELEMENT (paragraph),
                        html_to_insert,
                        NULL);
-               add_selection_markers_into_element_end (
-                       document, paragraph, NULL, NULL);
+
+               if (!webkit_dom_element_query_selector (paragraph, "#-x-evo-selection-start-marker", NULL))
+                       add_selection_markers_into_element_end (
+                               document, paragraph, NULL, NULL);
        } else
                paragraph = prepare_paragraph (selection, document, TRUE);
 


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