[evolution/wip/webkit2] 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/wip/webkit2] EHTMLEditorView - When there is no block in BODY, create the default one
- Date: Wed, 22 Apr 2015 12:51:22 +0000 (UTC)
commit eba98b4a247422ca203cd5f45f0ed8cc55e9c887
Author: Tomas Popela <tpopela redhat com>
Date: Tue Mar 24 08:44:13 2015 +0100
EHTMLEditorView - When there is no block in BODY, create the default one
web-extensions/e-html-editor-view-dom-functions.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c
b/web-extensions/e-html-editor-view-dom-functions.c
index 094037b..95cf243 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -3938,6 +3938,8 @@ dom_convert_and_insert_html_into_selection (WebKitDOMDocument *document,
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]