Skip to content

Build your personal knowledge base with Trilium Notes

provide context menu in text editor also with disabled spellcheck

zadam3386dace3bed
diff --git a/package-lock.json b/package-lock.json
index 644412e5f6..b5b4953a9e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "trilium",
- "version": "0.39.3",
+ "version": "0.39.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/src/public/javascripts/dialogs/options/other.js b/src/public/javascripts/dialogs/options/other.js
index 8c79ded403..ec82e3c81f 100644
--- a/src/public/javascripts/dialogs/options/other.js
+++ b/src/public/javascripts/dialogs/options/other.js
@@ -6,7 +6,7 @@ const TPL = `
<div>
<h4>Spell check</h4>
- <p>These options apply only for desktop builds, browsers will use their own native spell check.</p>
+ <p>These options apply only for desktop builds, browsers will use their own native spell check. App restart is required after change.</p>
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="spell-check-enabled">
diff --git a/src/public/javascripts/services/spell_check.js b/src/public/javascripts/services/spell_check.js
index f75e331570..aee0f379c7 100644
--- a/src/public/javascripts/services/spell_check.js
+++ b/src/public/javascripts/services/spell_check.js
@@ -3,15 +3,16 @@ import optionsService from "./options.js";
export async function initSpellCheck() {
const options = await optionsService.waitForOptions();
- if (!options.is('spellCheckEnabled')) {
- return;
- }
-
const {SpellCheckHandler, ContextMenuListener, ContextMenuBuilder} = require('electron-spellchecker');
const {remote, shell} = require('electron');
const spellCheckHandler = new SpellCheckHandler();
- spellCheckHandler.attachToInput();
+
+ // not fully disabling the spellcheck since we want to preserve the context menu
+ // this will just get rid of the "red squiggles"
+ if (options.is('spellCheckEnabled')) {
+ spellCheckHandler.attachToInput();
+ }
spellCheckHandler.switchLanguage(options.get('spellCheckLanguageCode'));
diff --git a/src/views/dialogs/about.ejs b/src/views/dialogs/about.ejs
index aabb27221f..1ce633e430 100644
--- a/src/views/dialogs/about.ejs
+++ b/src/views/dialogs/about.ejs
@@ -9,7 +9,7 @@
</button>
</div>
<div class="modal-body">
- <table class="table">
+ <table class="table table-borderless">
<tr>
<th>Homepage:</th>
<td><a href="https://github.com/zadam/trilium" class="external">https://github.com/zadam/trilium</a></td>