Skip to content

Commit

Permalink
Enable/disable spell check in verse editor
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed May 12, 2024
1 parent eb9a385 commit 7b07e7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions editone2/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ std::string editone2_index (Webserver_Request& webserver_request)
view.enable_zone ("stylesbutton");
}

view.set_variable ("spellcheck", filter::strings::convert_to_true_false(webserver_request.database_config_user ()->get_enable_spell_check()));

page += view.render ("editone2", "index");

page += assets_page::footer ();
Expand Down
2 changes: 1 addition & 1 deletion editone2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</div>
</div>
<div id="oneprefix" class="bibleeditor ##custom_class## ##editor_theme_color##"></div>
<div id="oneeditor" class="bibleeditor ##custom_class## ##active_editor_theme_color##"></div>
<div id="oneeditor" class="bibleeditor ##custom_class## ##active_editor_theme_color##" spellcheck="##spellcheck##"></div>
<div id="onesuffix" class="bibleeditor ##custom_class## ##editor_theme_color##"></div>
<div id="onetemp" class="bibleeditor ##custom_class## ##editor_theme_color##"></div>
<script>
Expand Down

0 comments on commit 7b07e7a

Please sign in to comment.