[evolution/wip/webkit2] Bug 753702 - Changing mail composer to plaintext mode and back to HTML mode changes the font family



commit 15ce73c279adced6602e9bf18b123d88351b34f1
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 1 11:10:06 2016 +0100

    Bug 753702 - Changing mail composer to plaintext mode and back to HTML mode changes the font family

 .../composer/e-html-editor-view-dom-functions.c    |    4 ++--
 1 files changed, 2 insertions(+), 2 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 30c68b8..aeccddc 100644
--- a/web-extensions/composer/e-html-editor-view-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-view-dom-functions.c
@@ -4659,14 +4659,14 @@ set_monospace_font_family_on_body (WebKitDOMElement *body,
         * font-family style to the body, so WebKit will know about it and will
         * avoid the described behaviour. */
        if (!html_mode) {
-               rename_attribute (WEBKIT_DOM_ELEMENT (body), "style", "data-style");
+               rename_attribute (WEBKIT_DOM_ELEMENT (body), "data-style", "style");
                webkit_dom_element_set_attribute (
                        WEBKIT_DOM_ELEMENT (body),
                        "style",
                        "font-family: Monospace;",
                        NULL);
        } else {
-               rename_attribute (WEBKIT_DOM_ELEMENT (body), "data-style", "style");
+               rename_attribute (WEBKIT_DOM_ELEMENT (body), "style", "data-style");
        }
 }
 


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