[evolution] EHTMLEditorView - Avoid wrapping of the preformatted block when it is inside the quoted text



commit 2d9a406dc8d6d8a1a01d2670b5ae6e1641a38915
Author: Tomas Popela <tpopela redhat com>
Date:   Mon Jul 28 13:19:09 2014 +0200

    EHTMLEditorView - Avoid wrapping of the preformatted block when it is inside the quoted text

 e-util/e-html-editor-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 788d9bf..bac4e0e 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -852,7 +852,7 @@ body_input_event_cb (WebKitDOMElement *element,
                }
 
                /* We have to process elements only inside normal block */
-               parent = webkit_dom_node_get_parent_node (WEBKIT_DOM_NODE (element));
+               parent = WEBKIT_DOM_NODE (get_parent_block_element (WEBKIT_DOM_NODE (element)));
                if (WEBKIT_DOM_IS_HTML_PRE_ELEMENT (parent)) {
                        e_html_editor_selection_restore (selection);
                        return;


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