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



commit ef556dfe1f806401296993bcf6153c328921b073
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 1 15:46:31 2016 +0100

    EHTMLEditorView - Only process the Heading elements in HTML mode

 .../composer/e-html-editor-view-dom-functions.c    |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-view-dom-functions.c 
b/web-extensions/composer/e-html-editor-view-dom-functions.c
index 53c1ef6..d5a818d 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -2270,7 +2270,8 @@ body_input_event_cb (WebKitDOMElement *element,
            e_html_editor_web_extension_get_space_key_pressed (extension)) {
                dom_check_magic_links (document, extension, FALSE);
                if (e_html_editor_web_extension_get_return_key_pressed (extension)) {
-                       if (fix_paragraph_structure_after_pressing_enter (document, extension)) {
+                       if (fix_paragraph_structure_after_pressing_enter (document, extension) &&
+                           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]