[evolution] EHTMLEditorSelection - Use create_selection_marker function when saving selection
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorSelection - Use create_selection_marker function when saving selection
- Date: Fri, 20 Feb 2015 07:40:59 +0000 (UTC)
commit 567bb678e8b2679d23da945b8e34e5daec626622
Author: Tomas Popela <tpopela redhat com>
Date: Fri Feb 20 08:36:45 2015 +0100
EHTMLEditorSelection - Use create_selection_marker function when saving selection
e-util/e-html-editor-selection.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 765cc5a..73c823b 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6019,8 +6019,7 @@ e_html_editor_selection_save (EHTMLEditorSelection *selection)
return;
collapsed = webkit_dom_range_get_collapsed (range, NULL);
- start_marker = webkit_dom_document_create_element (document, "SPAN", NULL);
- webkit_dom_element_set_id (start_marker, "-x-evo-selection-start-marker");
+ start_marker = create_selection_marker (document, TRUE);
container = webkit_dom_range_get_start_container (range, NULL);
offset = webkit_dom_range_get_start_offset (range, NULL);
@@ -6130,8 +6129,7 @@ e_html_editor_selection_save (EHTMLEditorSelection *selection)
webkit_dom_node_normalize (parent_node);
insert_end_marker:
- end_marker = webkit_dom_document_create_element (document, "SPAN", NULL);
- webkit_dom_element_set_id (end_marker, "-x-evo-selection-end-marker");
+ end_marker = create_selection_marker (document, FALSE);
if (webkit_dom_range_get_collapsed (range, NULL)) {
webkit_dom_node_insert_before (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]