[evolution/wip/webkit2] EHTMLEditorView - Style that is used to make the links clickable is send when using Ctrl + Enter to



commit b17e85b56c5e57a25c5d0e0e32f96c010d114fd5
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Mar 24 08:54:20 2015 +0100

    EHTMLEditorView - Style that is used to make the links clickable is send when using Ctrl + Enter to send 
the message
    
    Also rename the style id to sctick with other ids.

 web-extensions/e-html-editor-view-dom-functions.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/web-extensions/e-html-editor-view-dom-functions.c 
b/web-extensions/e-html-editor-view-dom-functions.c
index 911395e..56578fb 100644
--- a/web-extensions/e-html-editor-view-dom-functions.c
+++ b/web-extensions/e-html-editor-view-dom-functions.c
@@ -5692,6 +5692,11 @@ dom_process_content_for_html (WebKitDOMDocument *document,
                WEBKIT_DOM_ELEMENT (document_clone), "style#-x-evo-quote-style", NULL));
        if (node)
                remove_node (node);
+       /* When the Ctrl + Enter is pressed for sending, the links are activated. */
+       node = WEBKIT_DOM_NODE (webkit_dom_element_query_selector (
+               WEBKIT_DOM_ELEMENT (document_clone), "style#-x-evo-style-a", NULL));
+       if (node)
+               remove_node (node);
        node = WEBKIT_DOM_NODE (webkit_dom_element_query_selector (
                WEBKIT_DOM_ELEMENT (document_clone), "body", NULL));
        process_elements (extension, node, TRUE, FALSE, FALSE, NULL);


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