diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-06-23 22:46:36 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-06-23 22:47:42 +0800 |
commit | 09310a054cf8e66c3da9d332909c60c8ab090452 (patch) | |
tree | d397e7a8b688d31f97a62c5a951819951e0315a3 /e-util/e-html-editor-selection.c | |
parent | a4fb4775482c4dc728c456510331175170f9f7b1 (diff) | |
download | gsoc2013-evolution-09310a054cf8e66c3da9d332909c60c8ab090452.tar gsoc2013-evolution-09310a054cf8e66c3da9d332909c60c8ab090452.tar.gz gsoc2013-evolution-09310a054cf8e66c3da9d332909c60c8ab090452.tar.bz2 gsoc2013-evolution-09310a054cf8e66c3da9d332909c60c8ab090452.tar.lz gsoc2013-evolution-09310a054cf8e66c3da9d332909c60c8ab090452.tar.xz gsoc2013-evolution-09310a054cf8e66c3da9d332909c60c8ab090452.tar.zst gsoc2013-evolution-09310a054cf8e66c3da9d332909c60c8ab090452.zip |
EHTMLEditor - Process text in convertor when pasting plain text from clipboard
Diffstat (limited to 'e-util/e-html-editor-selection.c')
-rw-r--r-- | e-util/e-html-editor-selection.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c index 4565f76e32..1cb540b2ca 100644 --- a/e-util/e-html-editor-selection.c +++ b/e-util/e-html-editor-selection.c @@ -3900,7 +3900,6 @@ e_html_editor_selection_insert_text (EHTMLEditorSelection *selection, const gchar *plain_text) { EHTMLEditorView *view; - EHTMLEditorViewCommand command; g_return_if_fail (E_IS_HTML_EDITOR_SELECTION (selection)); g_return_if_fail (plain_text != NULL); @@ -3908,8 +3907,7 @@ e_html_editor_selection_insert_text (EHTMLEditorSelection *selection, view = e_html_editor_selection_ref_html_editor_view (selection); g_return_if_fail (view != NULL); - command = E_HTML_EDITOR_VIEW_COMMAND_INSERT_TEXT; - e_html_editor_view_exec_command (view, command, plain_text); + e_html_editor_view_convert_and_insert_plain_text (view, plain_text); g_object_unref (view); } @@ -3936,12 +3934,11 @@ e_html_editor_selection_insert_html (EHTMLEditorSelection *selection, g_return_if_fail (view != NULL); command = E_HTML_EDITOR_VIEW_COMMAND_INSERT_HTML; - if (e_html_editor_view_get_html_mode (view)) { + if (e_html_editor_view_get_html_mode (view)) e_html_editor_view_exec_command (view, command, html_text); - } else { + else e_html_editor_view_convert_and_insert_html_to_plain_text ( view, html_text); - } g_object_unref (view); } |