[evolution] EHTMLEditorView - When there is no block in BODY, create the default one
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - When there is no block in BODY, create the default one
- Date: Mon, 2 Feb 2015 10:30:52 +0000 (UTC)
commit a5fda150c6bccfa626e3adeac3018cd5624c36dc
Author: Tomas Popela <tpopela redhat com>
Date: Mon Feb 2 11:28:22 2015 +0100
EHTMLEditorView - When there is no block in BODY, create the default one
e-util/e-html-editor-view.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 0da22eb..aeea625 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5121,6 +5121,8 @@ html_editor_view_insert_converted_html_into_selection (EHTMLEditorView *view,
document, "-x-evo-selection-end-marker");
current_block = get_parent_block_node_from_child (
WEBKIT_DOM_NODE (selection_start_marker));
+ if (WEBKIT_DOM_IS_HTML_BODY_ELEMENT (current_block))
+ current_block = NULL;
element = webkit_dom_document_create_element (document, "div", NULL);
if (is_html) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]