[evolution] Bug 741031 - Replacing misspelled word with keyboard doesn't replace the original word



commit f12dd9255689f6487ef33e499df730f2e8633ef1
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Dec 3 15:31:32 2014 +0100

    Bug 741031 - Replacing misspelled word with keyboard doesn't replace the original word

 e-util/e-html-editor-selection.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 133af2a..46d982f 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -986,7 +986,9 @@ e_html_editor_selection_replace_caret_word (EHTMLEditorSelection *selection,
        webkit_dom_range_expand (range, "word", NULL);
        webkit_dom_dom_selection_add_range (dom_selection, range);
 
-       e_html_editor_selection_insert_html (selection, replacement);
+       e_html_editor_view_exec_command (
+               view, E_HTML_EDITOR_VIEW_COMMAND_INSERT_HTML, replacement);
+       e_html_editor_view_force_spell_check_for_current_paragraph (view);
 
        g_object_unref (view);
 }


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