From 2d9a406dc8d6d8a1a01d2670b5ae6e1641a38915 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 28 Jul 2014 13:19:09 +0200 Subject: EHTMLEditorView - Avoid wrapping of the preformatted block when it is inside the quoted text --- e-util/e-html-editor-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'e-util/e-html-editor-view.c') diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index 788d9bfb16..bac4e0ed47 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; -- cgit v1.2.3