Skip to content

Commit

Permalink
Enable/disable spell check in chapter editor
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed May 12, 2024
1 parent fabf067 commit 94644d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions edit/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");


Expand Down
2 changes: 1 addition & 1 deletion edit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>
</div>
<div id="toolbar-container" hidden></div>
<div id="editor" class="bibleeditor ##custom_class## ##active_editor_theme_color##"></div>
<div id="editor" class="bibleeditor ##custom_class## ##active_editor_theme_color##" spellcheck="##spellcheck##"></div>
<div id="edittemp" class="bibleeditor ##custom_class## ##editor_theme_color##"></div>
<script>##script##</script>
<script type="text/javascript" src="/checksum/logic.js?##VERSION##"></script>
Expand Down

0 comments on commit 94644d3

Please sign in to comment.