diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-06-13 20:50:03 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-06-13 20:57:26 +0800 |
commit | 748299f9c9ccfe3a8f5397445fd138c01e4c978b (patch) | |
tree | f5b5afdb2141ee25d9defa0b81301fed23a5cac0 /e-util/e-html-editor-view.c | |
parent | 5be727eeb41f8bb204784bf043b25373d723eff3 (diff) | |
download | gsoc2013-evolution-748299f9c9ccfe3a8f5397445fd138c01e4c978b.tar gsoc2013-evolution-748299f9c9ccfe3a8f5397445fd138c01e4c978b.tar.gz gsoc2013-evolution-748299f9c9ccfe3a8f5397445fd138c01e4c978b.tar.bz2 gsoc2013-evolution-748299f9c9ccfe3a8f5397445fd138c01e4c978b.tar.lz gsoc2013-evolution-748299f9c9ccfe3a8f5397445fd138c01e4c978b.tar.xz gsoc2013-evolution-748299f9c9ccfe3a8f5397445fd138c01e4c978b.tar.zst gsoc2013-evolution-748299f9c9ccfe3a8f5397445fd138c01e4c978b.zip |
EHTMLEditor - Fix block format change with selection in quoted content
Diffstat (limited to 'e-util/e-html-editor-view.c')
-rw-r--r-- | e-util/e-html-editor-view.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c index c843afd535..e4f52c593c 100644 --- a/e-util/e-html-editor-view.c +++ b/e-util/e-html-editor-view.c @@ -3034,8 +3034,8 @@ e_html_editor_view_get_selection (EHTMLEditorView *view) */ gboolean e_html_editor_view_exec_command (EHTMLEditorView *view, - EHTMLEditorViewCommand command, - const gchar *value) + EHTMLEditorViewCommand command, + const gchar *value) { WebKitDOMDocument *document; const gchar *cmd_str = 0; @@ -3274,6 +3274,7 @@ quote_node (WebKitDOMDocument *document, next_sibling = webkit_dom_node_get_next_sibling (node); is_html_node = + !WEBKIT_DOM_IS_TEXT (prev_sibling) && !WEBKIT_DOM_IS_COMMENT (prev_sibling) && ( WEBKIT_DOM_IS_HTML_ANCHOR_ELEMENT (prev_sibling) || element_has_tag (WEBKIT_DOM_ELEMENT (prev_sibling), "b") || |