From 09310a054cf8e66c3da9d332909c60c8ab090452 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mon, 23 Jun 2014 16:46:36 +0200 Subject: EHTMLEditor - Process text in convertor when pasting plain text from clipboard --- e-util/e-html-editor-view.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'e-util/e-html-editor-view.c') 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 @@ -5946,6 +5946,16 @@ convert_and_load_html_to_plain_text (EHTMLEditorView *view, view->priv->convertor_web_view, html, NULL, NULL, "file://"); } +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) -- cgit v1.2.3