From b8acc612b838e7354c05efa8348954841566b26b Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Mon, 8 Jun 2020 09:17:32 +0200
Subject: [PATCH 3/5] I#975 - Composer: Some user options not propagated to the
WebProcess
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/975
---
src/modules/webkit-editor/e-webkit-editor.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index 2a91782e41..ca8bf6e65d 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -4796,8 +4796,18 @@ webkit_editor_load_changed_cb (EWebKitEditor *wk_editor,
return;
e_web_view_jsc_run_script (WEBKIT_WEB_VIEW (wk_editor), wk_editor->priv->cancellable,
- "EvoEditor.START_BOTTOM = %x;",
- e_webkit_editor_three_state_to_bool (wk_editor->priv->start_bottom, "composer-reply-start-bottom"));
+ "EvoEditor.NORMAL_PARAGRAPH_WIDTH = %d;"
+ "EvoEditor.START_BOTTOM = %x;"
+ "EvoEditor.MAGIC_LINKS = %x;"
+ "EvoEditor.MAGIC_SMILEYS = %x;"
+ "EvoEditor.UNICODE_SMILEYS = %x;"
+ "EvoEditor.WRAP_QUOTED_TEXT_IN_REPLIES = %x;",
+ wk_editor->priv->normal_paragraph_width,
+ e_webkit_editor_three_state_to_bool (wk_editor->priv->start_bottom, "composer-reply-start-bottom"),
+ wk_editor->priv->magic_links,
+ wk_editor->priv->magic_smileys,
+ wk_editor->priv->unicode_smileys,
+ wk_editor->priv->wrap_quoted_text_in_replies);
/* Dispatch queued operations - as we are using this just for load
* operations load just the latest request and throw away the rest. */
--
2.27.0