From 3370c19afaee8522f170e4dbe9e7808ec24f98b9 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Fri, 27 Feb 2015 10:46:06 +0100 Subject: [PATCH] EHTMLEditorView - Emoticons can be resizable just in HTML mode --- e-util/e-html-editor-view.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index 5b232af2d1..5738c7c209 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -1618,8 +1618,12 @@ emoticon_read_async_cb (GFile *file, /* Insert span with image representation and another one with text * represetation and hide/show them dependant on active composer mode */ wrapper = webkit_dom_document_create_element (document, "SPAN", NULL); - webkit_dom_element_set_attribute ( - wrapper, "class", "-x-evo-smiley-wrapper -x-evo-resizable-wrapper", NULL); + if (html_mode) + webkit_dom_element_set_attribute ( + wrapper, "class", "-x-evo-smiley-wrapper -x-evo-resizable-wrapper", NULL); + else + webkit_dom_element_set_attribute ( + wrapper, "class", "-x-evo-smiley-wrapper", NULL); image = webkit_dom_document_create_element (document, "IMG", NULL); webkit_dom_element_set_attribute (image, "src", output, NULL);