[evolution/wip/webkit2] EHTMLEditorView - Restore the selection end mark correctly when processing HTML to plain text



commit 57d35451d638a5661b5ce6ea26d02f2d97a62504
Author: Tomas Popela <tpopela redhat com>
Date:   Tue May 31 11:36:39 2016 +0200

    EHTMLEditorView - Restore the selection end mark correctly when processing HTML to plain text
    
    Otherwise the ##SELECTON_END## string could be left in the output.

 .../e-html-editor-view-dom-functions.c             |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/webkit-content-editor/web-extension/e-html-editor-view-dom-functions.c 
b/modules/webkit-content-editor/web-extension/e-html-editor-view-dom-functions.c
index 606e123..b2a236b 100644
--- a/modules/webkit-content-editor/web-extension/e-html-editor-view-dom-functions.c
+++ b/modules/webkit-content-editor/web-extension/e-html-editor-view-dom-functions.c
@@ -4617,8 +4617,8 @@ replace_selection_markers (gchar **text)
 
                tmp = e_str_replace_string (
                        *text,
-                       "##SELECTION_START##",
-                       "<span id=\"-x-evo-selection-start-marker\"></span>");
+                       "##SELECTION_END##",
+                       "<span id=\"-x-evo-selection-end-marker\"></span>");
 
                g_free (*text);
                *text = g_string_free (tmp, FALSE);


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