aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-view.c
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2014-06-23 22:46:36 +0800
committerTomas Popela <tpopela@redhat.com>2014-06-23 22:47:42 +0800
commit09310a054cf8e66c3da9d332909c60c8ab090452 (patch)
treed397e7a8b688d31f97a62c5a951819951e0315a3 /e-util/e-html-editor-view.c
parenta4fb4775482c4dc728c456510331175170f9f7b1 (diff)
downloadgsoc2013-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-view.c')
-rw-r--r--e-util/e-html-editor-view.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 5255be54bb..a8559f1793 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5947,6 +5947,16 @@ convert_and_load_html_to_plain_text (EHTMLEditorView *view,
}
void
+e_html_editor_view_convert_and_insert_plain_text (EHTMLEditorView *view,
+ const gchar *text)
+{
+ view->priv->convertor_insert = TRUE;
+
+ webkit_web_view_load_string (
+ view->priv->convertor_web_view, text, "text/plain", NULL, "file://");
+}
+
+void
e_html_editor_view_convert_and_insert_html_to_plain_text (EHTMLEditorView *view,
const gchar *html)
{