EHTMLEditorView - Emoticons can be resizable just in HTML mode

This commit is contained in:
Tomas Popela
2015-02-27 10:46:06 +01:00
parent 33e1edd842
commit 3370c19afa

View File

@ -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);