[evolution] EHTMLEditorView - Only process the Heading elements in HTML mode



commit 228fe389e501c22401fe31fbeef629472a5b9337
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Sep 29 09:11:27 2015 +0200

    EHTMLEditorView - Only process the Heading elements in HTML mode

 e-util/e-html-editor-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 53d40bf..26f9187 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2729,7 +2729,8 @@ body_input_event_cb (WebKitDOMElement *element,
        if (view->priv->return_key_pressed || view->priv->space_key_pressed) {
                html_editor_view_check_magic_links (view, range, FALSE);
                if (view->priv->return_key_pressed) {
-                       if (fix_paragraph_structure_after_pressing_enter (selection, document)) {
+                       if (fix_paragraph_structure_after_pressing_enter (selection, document) &&
+                           view->priv->html_mode) {
                                /* When the return is pressed in a H1-6 element, WebKit doesn't
                                 * continue with the same element, but creates normal paragraph,
                                 * so we have to unset the bold font. */


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