aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-html-editor-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-html-editor-view.c')
-rw-r--r--e-util/e-html-editor-view.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 8039a5ce52..19f5758bd1 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -6126,6 +6126,16 @@ convert_and_load_html_to_plain_text (EHTMLEditorView *view,
view->priv->convertor_web_view, html, NULL, NULL, "file://");
}
+static void
+convert_and_load_plain_text (EHTMLEditorView *view,
+ const gchar *text)
+{
+ view->priv->convertor_insert = FALSE;
+
+ webkit_web_view_load_string (
+ view->priv->convertor_web_view, text, "text/plain", NULL, "file://");
+}
+
void
e_html_editor_view_convert_and_insert_plain_text (EHTMLEditorView *view,
const gchar *text)
@@ -6170,7 +6180,7 @@ e_html_editor_view_set_text_html (EHTMLEditorView *view,
}
convert_and_load_html_to_plain_text (view, text);
} else {
- convert_and_load_html_to_plain_text (view, text);
+ convert_and_load_plain_text (view, text);
}
} else {
webkit_web_view_load_string (
@@ -6191,8 +6201,7 @@ e_html_editor_view_set_text_plain (EHTMLEditorView *view,
{
view->priv->reload_in_progress = TRUE;
- webkit_web_view_load_string (
- WEBKIT_WEB_VIEW (view), text, "text/plain", NULL, "file://");
+ convert_and_load_plain_text (view, text);
}
/**