diff options
author | Tomas Popela <tpopela@redhat.com> | 2014-06-25 20:13:39 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2014-06-25 21:59:50 +0800 |
commit | b5d682209bd8394c4fcccd6f2dd84ad53143a60c (patch) | |
tree | 8859c95fbb8e35ebff2d8c14cbc89e49d65760b2 /e-util/e-html-editor-selection.c | |
parent | 177b1a6abfe7b73d7534db819d52e3d87ad76756 (diff) | |
download | gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.gz gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.bz2 gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.lz gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.xz gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.tar.zst gsoc2013-evolution-b5d682209bd8394c4fcccd6f2dd84ad53143a60c.zip |
Bug 731508 - [webkit-composer] no option to paste as text (without formatting)
Diffstat (limited to 'e-util/e-html-editor-selection.c')
-rw-r--r-- | e-util/e-html-editor-selection.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c index 4db05b4730..bc0d6f4bf6 100644 --- a/e-util/e-html-editor-selection.c +++ b/e-util/e-html-editor-selection.c @@ -3943,6 +3943,22 @@ e_html_editor_selection_insert_html (EHTMLEditorSelection *selection, g_object_unref (view); } +void +e_html_editor_selection_insert_as_text (EHTMLEditorSelection *selection, + const gchar *html_text) +{ + EHTMLEditorView *view; + + g_return_if_fail (E_IS_HTML_EDITOR_SELECTION (selection)); + g_return_if_fail (html_text != NULL); + + view = e_html_editor_selection_ref_html_editor_view (selection); + g_return_if_fail (view != NULL); + + e_html_editor_view_convert_and_insert_html_to_plain_text (view, html_text); + + g_object_unref (view); +} /************************* image_load_and_insert_async() *************************/ |