From 94644d39794b9c21951e1eb3154b2e4558973030 Mon Sep 17 00:00:00 2001 From: Teus Benschop Date: Sun, 12 May 2024 15:43:17 +0200 Subject: [PATCH] Enable/disable spell check in chapter editor https://github.com/bibledit/cloud/issues/937 --- edit/index.cpp | 4 ++++ edit/index.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/edit/index.cpp b/edit/index.cpp index eaeca59bb..aa3a5c84e 100644 --- a/edit/index.cpp +++ b/edit/index.cpp @@ -177,6 +177,10 @@ std::string edit_index (Webserver_Request& webserver_request) } + // Whether to enable spell check. + view.set_variable ("spellcheck", filter::strings::convert_to_true_false(webserver_request.database_config_user ()->get_enable_spell_check())); + + page += view.render ("edit", "index"); diff --git a/edit/index.html b/edit/index.html index 0df638c55..fbc6966b3 100644 --- a/edit/index.html +++ b/edit/index.html @@ -29,7 +29,7 @@ -
+