@bobfrankston/rmfmail 1.0.678 → 1.0.679
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/compose/compose.bundle.js +189 -88
- package/client/compose/compose.bundle.js.map +3 -3
- package/client/compose/spellcheck.js +257 -150
- package/client/compose/spellcheck.js.map +1 -1
- package/client/compose/spellcheck.ts +252 -136
- package/docs/accounts.md +9 -1
- package/package.json +3 -3
- package/packages/mailx-service/index.d.ts +1 -0
- package/packages/mailx-service/index.d.ts.map +1 -1
- package/packages/mailx-service/index.js +26 -6
- package/packages/mailx-service/index.js.map +1 -1
- package/packages/mailx-service/index.ts +24 -4
|
@@ -1,42 +1,55 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Live spell-check for the TinyMCE compose editor.
|
|
3
3
|
*
|
|
4
4
|
* Why this exists: WebView2's built-in spell checker isn't reliably
|
|
5
5
|
* enabled on our msger-hosted compose iframe (see msger main.rs around
|
|
6
|
-
* AreDefaultContextMenusEnabled —
|
|
7
|
-
*
|
|
8
|
-
* by WebView2 runtime). Rather
|
|
9
|
-
* spellchecker (`nspell`) + the
|
|
6
|
+
* AreDefaultContextMenusEnabled — the comment claims it leaves
|
|
7
|
+
* defaults for spell-suggest menus, but `IsSpellcheckEnabled` is never
|
|
8
|
+
* explicitly set and the default varies by WebView2 runtime). Rather
|
|
9
|
+
* than depend on the host, we ship a JS spellchecker (`nspell`) + the
|
|
10
|
+
* standard `dictionary-en` Hunspell files.
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* -
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* is actively typing into and adds significant complexity. The
|
|
20
|
-
* right-click flow gives the suggestions experience without the
|
|
21
|
-
* editing-experience tradeoffs.
|
|
12
|
+
* Two layers:
|
|
13
|
+
* 1. Live decoration — words that nspell flags get wrapped in a
|
|
14
|
+
* `<span data-mailx-spellerror="1">` while editing. CSS gives them
|
|
15
|
+
* a wavy red underline (text-decoration: underline wavy #d33). The
|
|
16
|
+
* markers are stripped at serialization time so they never reach
|
|
17
|
+
* the sent message or the saved draft.
|
|
18
|
+
* 2. Right-click — clicking on a marker shows our own popup with
|
|
19
|
+
* suggestions plus "Add to dictionary" / "Ignore (this session)".
|
|
22
20
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
21
|
+
* Decoration runs:
|
|
22
|
+
* - Once after the editor inits + dict loads (initial scan of pre-
|
|
23
|
+
* populated quote / signature, though we skip blockquote content).
|
|
24
|
+
* - Debounced after every input (~500 ms idle).
|
|
25
|
+
* - After setContent (paste, reply-quote insertion, …).
|
|
26
|
+
*
|
|
27
|
+
* The decoration walker:
|
|
28
|
+
* - Skips `<blockquote>` (the quoted reply — not the user's words),
|
|
29
|
+
* `<code>`, `<pre>`, `<a>` (URLs aren't natural-language words),
|
|
30
|
+
* and content inside any existing marker (so re-scans don't double-
|
|
31
|
+
* wrap).
|
|
32
|
+
* - Uses TinyMCE's `undoManager.ignore` + selection bookmarks so the
|
|
33
|
+
* decoration mutations don't pollute undo and don't move the caret.
|
|
34
|
+
*
|
|
35
|
+
* Dictionary persistence:
|
|
36
|
+
* - User additions: `localStorage["mailx-user-dict"]` (a JSON array).
|
|
37
|
+
* - "Ignore this session": in-memory only via `nspell.add()`.
|
|
26
38
|
*/
|
|
27
39
|
// @ts-expect-error — nspell ships no type defs. Treated as `any`; the
|
|
28
40
|
// surface we use (`new NSpell({aff, dic})`, `.correct`, `.suggest`,
|
|
29
41
|
// `.add`) is small and stable.
|
|
30
42
|
import NSpell from "nspell";
|
|
31
43
|
const USER_DICT_KEY = "mailx-user-dict";
|
|
44
|
+
const MARKER_ATTR = "data-mailx-spellerror";
|
|
45
|
+
const DECORATE_DEBOUNCE_MS = 500;
|
|
46
|
+
const MIN_WORD_LEN = 3;
|
|
47
|
+
const SKIP_TAGS = new Set(["BLOCKQUOTE", "CODE", "PRE", "A", "SCRIPT", "STYLE", "KBD", "SAMP", "VAR"]);
|
|
32
48
|
let spellPromise = null;
|
|
33
49
|
async function getSpell() {
|
|
34
50
|
if (spellPromise)
|
|
35
51
|
return spellPromise;
|
|
36
52
|
spellPromise = (async () => {
|
|
37
|
-
// Paths are relative to compose.html. msger serves files from
|
|
38
|
-
// contentDir=client/, so `../lib/dict/...` lands in the right
|
|
39
|
-
// place under both msger.localhost and Android file:// schemes.
|
|
40
53
|
const [affRes, dicRes] = await Promise.all([
|
|
41
54
|
fetch("../lib/dict/en.aff"),
|
|
42
55
|
fetch("../lib/dict/en.dic"),
|
|
@@ -46,14 +59,13 @@ async function getSpell() {
|
|
|
46
59
|
}
|
|
47
60
|
const [aff, dic] = await Promise.all([affRes.text(), dicRes.text()]);
|
|
48
61
|
const sp = new NSpell({ aff, dic });
|
|
49
|
-
// Seed with user dictionary.
|
|
50
62
|
try {
|
|
51
63
|
const raw = localStorage.getItem(USER_DICT_KEY);
|
|
52
64
|
if (raw)
|
|
53
65
|
for (const w of JSON.parse(raw))
|
|
54
66
|
sp.add(w);
|
|
55
67
|
}
|
|
56
|
-
catch { /* corrupt
|
|
68
|
+
catch { /* corrupt entry — start clean */ }
|
|
57
69
|
return sp;
|
|
58
70
|
})();
|
|
59
71
|
return spellPromise;
|
|
@@ -67,72 +79,156 @@ function addToUserDict(word, sp) {
|
|
|
67
79
|
arr.push(word);
|
|
68
80
|
localStorage.setItem(USER_DICT_KEY, JSON.stringify(arr));
|
|
69
81
|
}
|
|
70
|
-
catch { /*
|
|
82
|
+
catch { /* */ }
|
|
71
83
|
sp.add(word);
|
|
72
84
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
// ── Live decoration ───────────────────────────────────────────────
|
|
86
|
+
/** Walk the editor body, wrap newly-misspelled words, unwrap markers
|
|
87
|
+
* that are now correct. Mutations are wrapped in undoManager.ignore so
|
|
88
|
+
* they don't pollute undo history; selection is preserved via a
|
|
89
|
+
* TinyMCE bookmark. */
|
|
90
|
+
function decorate(editor, sp) {
|
|
91
|
+
const body = editor.getBody?.();
|
|
92
|
+
const doc = editor.getDoc?.();
|
|
93
|
+
if (!body || !doc)
|
|
94
|
+
return;
|
|
95
|
+
// Don't fight active typing — if the caret is INSIDE a current
|
|
96
|
+
// misspelling marker, the user is mid-correction. Let them finish.
|
|
97
|
+
// We'll re-scan after the debounce on their next pause.
|
|
98
|
+
const sel = doc.getSelection();
|
|
99
|
+
if (sel && sel.rangeCount > 0) {
|
|
100
|
+
const focus = sel.focusNode;
|
|
101
|
+
let p = focus;
|
|
102
|
+
while (p && p !== body) {
|
|
103
|
+
if (p.nodeType === Node.ELEMENT_NODE && p.hasAttribute?.(MARKER_ATTR)) {
|
|
104
|
+
// Cursor inside a marker — skip this pass; re-decorate
|
|
105
|
+
// when they next stop typing.
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
p = p.parentNode;
|
|
109
|
+
}
|
|
87
110
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
111
|
+
const bookmark = editor.selection?.getBookmark?.(2);
|
|
112
|
+
try {
|
|
113
|
+
editor.undoManager?.ignore?.(() => {
|
|
114
|
+
// 1. Unwrap any existing markers — we'll re-wrap fresh based
|
|
115
|
+
// on the current content. Cheaper than incremental update
|
|
116
|
+
// and avoids stale markers if the user fixed a word
|
|
117
|
+
// without going through our menu (just retyped it).
|
|
118
|
+
const old = body.querySelectorAll(`span[${MARKER_ATTR}]`);
|
|
119
|
+
for (const m of old) {
|
|
120
|
+
const parent = m.parentNode;
|
|
121
|
+
if (!parent)
|
|
122
|
+
continue;
|
|
123
|
+
while (m.firstChild)
|
|
124
|
+
parent.insertBefore(m.firstChild, m);
|
|
125
|
+
parent.removeChild(m);
|
|
126
|
+
}
|
|
127
|
+
// Merge text nodes that were split by the now-removed spans.
|
|
128
|
+
body.normalize();
|
|
129
|
+
// 2. Walk text nodes and collect words to wrap.
|
|
130
|
+
const walker = doc.createTreeWalker(body, NodeFilter.SHOW_TEXT, {
|
|
131
|
+
acceptNode(node) {
|
|
132
|
+
let p = node.parentNode;
|
|
133
|
+
while (p && p !== body) {
|
|
134
|
+
if (p.nodeType === Node.ELEMENT_NODE && SKIP_TAGS.has(p.tagName)) {
|
|
135
|
+
return NodeFilter.FILTER_REJECT;
|
|
136
|
+
}
|
|
137
|
+
p = p.parentNode;
|
|
138
|
+
}
|
|
139
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
const hits = [];
|
|
143
|
+
let n = walker.nextNode();
|
|
144
|
+
// Letter / digit / apostrophe / hyphen — tokenize words via
|
|
145
|
+
// Unicode-aware regex so we don't false-flag accented words.
|
|
146
|
+
const WORD_RE = /[\p{L}][\p{L}'’\-]*/gu;
|
|
147
|
+
while (n) {
|
|
148
|
+
const tn = n;
|
|
149
|
+
const text = tn.data;
|
|
150
|
+
let m;
|
|
151
|
+
WORD_RE.lastIndex = 0;
|
|
152
|
+
while ((m = WORD_RE.exec(text)) !== null) {
|
|
153
|
+
const word = m[0];
|
|
154
|
+
if (word.length < MIN_WORD_LEN)
|
|
155
|
+
continue;
|
|
156
|
+
if (sp.correct(word))
|
|
157
|
+
continue;
|
|
158
|
+
hits.push({ node: tn, start: m.index, end: m.index + word.length });
|
|
159
|
+
}
|
|
160
|
+
n = walker.nextNode();
|
|
161
|
+
}
|
|
162
|
+
// 3. Wrap hits in reverse order — wrapping a span splits the
|
|
163
|
+
// text node, which would invalidate earlier offsets. Going
|
|
164
|
+
// right-to-left keeps the not-yet-touched offsets valid.
|
|
165
|
+
hits.reverse();
|
|
166
|
+
for (const h of hits) {
|
|
167
|
+
const range = doc.createRange();
|
|
168
|
+
range.setStart(h.node, h.start);
|
|
169
|
+
range.setEnd(h.node, h.end);
|
|
170
|
+
const span = doc.createElement("span");
|
|
171
|
+
span.setAttribute(MARKER_ATTR, "1");
|
|
172
|
+
try {
|
|
173
|
+
range.surroundContents(span);
|
|
174
|
+
}
|
|
175
|
+
catch { /* range spans a node boundary — rare; skip */ }
|
|
176
|
+
}
|
|
177
|
+
});
|
|
94
178
|
}
|
|
95
|
-
|
|
96
|
-
|
|
179
|
+
finally {
|
|
180
|
+
if (bookmark)
|
|
181
|
+
try {
|
|
182
|
+
editor.selection?.moveToBookmark?.(bookmark);
|
|
183
|
+
}
|
|
184
|
+
catch { /* */ }
|
|
97
185
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
186
|
+
}
|
|
187
|
+
/** Inject the wavy-red CSS into the editor iframe. */
|
|
188
|
+
function installDecorationStyle(editor) {
|
|
189
|
+
const doc = editor.getDoc?.();
|
|
190
|
+
if (!doc)
|
|
191
|
+
return;
|
|
192
|
+
if (doc.getElementById("mailx-spell-style"))
|
|
193
|
+
return;
|
|
194
|
+
const style = doc.createElement("style");
|
|
195
|
+
style.id = "mailx-spell-style";
|
|
196
|
+
style.textContent = `
|
|
197
|
+
span[${MARKER_ATTR}] {
|
|
198
|
+
text-decoration: underline wavy #d33;
|
|
199
|
+
text-decoration-skip-ink: none;
|
|
200
|
+
text-underline-offset: 2px;
|
|
201
|
+
/* No background — keeps the styling subtle, like a native
|
|
202
|
+
* spell underline, not a Find-highlight. */
|
|
203
|
+
background: transparent;
|
|
204
|
+
}
|
|
205
|
+
`;
|
|
206
|
+
doc.head.appendChild(style);
|
|
207
|
+
}
|
|
208
|
+
/** Strip decoration markers from serialized output. TinyMCE fires
|
|
209
|
+
* attribute filters during getContent / draft-save; this filter
|
|
210
|
+
* unwraps the span so the saved/sent HTML carries only the text. */
|
|
211
|
+
function installSerializerFilter(editor) {
|
|
212
|
+
if (editor.__mailxSpellSerializerWired)
|
|
213
|
+
return;
|
|
214
|
+
editor.__mailxSpellSerializerWired = true;
|
|
215
|
+
try {
|
|
216
|
+
editor.serializer.addAttributeFilter(MARKER_ATTR, (nodes) => {
|
|
217
|
+
for (const node of nodes) {
|
|
218
|
+
// TinyMCE's html-node API: `unwrap()` replaces the node
|
|
219
|
+
// with its children. Exactly what we want — keep the
|
|
220
|
+
// text, drop the span.
|
|
221
|
+
if (typeof node.unwrap === "function")
|
|
222
|
+
node.unwrap();
|
|
223
|
+
}
|
|
224
|
+
});
|
|
118
225
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
end--;
|
|
226
|
+
catch (e) {
|
|
227
|
+
console.warn("[spellcheck] serializer filter setup failed:", e);
|
|
122
228
|
}
|
|
123
|
-
if (!word)
|
|
124
|
-
return null;
|
|
125
|
-
const range = doc.createRange();
|
|
126
|
-
range.setStart(caretNode, start);
|
|
127
|
-
range.setEnd(caretNode, end);
|
|
128
|
-
return { word, range };
|
|
129
229
|
}
|
|
130
|
-
|
|
131
|
-
* (NOT inside the editor iframe — the iframe clips to its own bounds,
|
|
132
|
-
* and a positioned menu can extend past the iframe edge). Returns
|
|
133
|
-
* a remove() function. */
|
|
230
|
+
// ── Context menu ──────────────────────────────────────────────────
|
|
134
231
|
function showSuggestionsMenu(parentDoc, x, y, items) {
|
|
135
|
-
// Close any prior instance.
|
|
136
232
|
parentDoc.getElementById("mailx-spell-menu")?.remove();
|
|
137
233
|
const menu = parentDoc.createElement("div");
|
|
138
234
|
menu.id = "mailx-spell-menu";
|
|
@@ -147,11 +243,11 @@ function showSuggestionsMenu(parentDoc, x, y, items) {
|
|
|
147
243
|
box-shadow: 0 4px 16px rgba(0,0,0,0.18);
|
|
148
244
|
padding: 4px 0;
|
|
149
245
|
font: 13px system-ui, sans-serif;
|
|
150
|
-
min-width:
|
|
246
|
+
min-width: 180px;
|
|
151
247
|
max-width: 320px;
|
|
152
248
|
`;
|
|
153
249
|
for (const it of items) {
|
|
154
|
-
if (it.
|
|
250
|
+
if (it.separator) {
|
|
155
251
|
const sep = parentDoc.createElement("div");
|
|
156
252
|
sep.style.cssText = "border-top:1px solid var(--color-border,#ddd); margin: 4px 0;";
|
|
157
253
|
menu.appendChild(sep);
|
|
@@ -179,13 +275,11 @@ function showSuggestionsMenu(parentDoc, x, y, items) {
|
|
|
179
275
|
menu.appendChild(btn);
|
|
180
276
|
}
|
|
181
277
|
parentDoc.body.appendChild(menu);
|
|
182
|
-
// Clamp into viewport if it would overflow.
|
|
183
278
|
const r = menu.getBoundingClientRect();
|
|
184
279
|
if (r.right > window.innerWidth)
|
|
185
280
|
menu.style.left = `${Math.max(8, window.innerWidth - r.width - 8)}px`;
|
|
186
281
|
if (r.bottom > window.innerHeight)
|
|
187
282
|
menu.style.top = `${Math.max(8, window.innerHeight - r.height - 8)}px`;
|
|
188
|
-
// Dismiss on next click anywhere or Esc.
|
|
189
283
|
const dismiss = (e) => {
|
|
190
284
|
if (e.type === "keydown" && e.key !== "Escape")
|
|
191
285
|
return;
|
|
@@ -200,12 +294,13 @@ function showSuggestionsMenu(parentDoc, x, y, items) {
|
|
|
200
294
|
parentDoc.addEventListener("keydown", dismiss, true);
|
|
201
295
|
}, 0);
|
|
202
296
|
}
|
|
203
|
-
/** Replace
|
|
204
|
-
*
|
|
205
|
-
* dirty-tracking
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
297
|
+
/** Replace a misspelling marker span with the correction. Done via
|
|
298
|
+
* range-based selection + insertText so TinyMCE's undo stack and
|
|
299
|
+
* dirty-tracking pick it up properly. */
|
|
300
|
+
function replaceMarker(editor, marker, replacement) {
|
|
301
|
+
const doc = editor.getDoc();
|
|
302
|
+
const range = doc.createRange();
|
|
303
|
+
range.selectNode(marker);
|
|
209
304
|
const sel = doc.getSelection();
|
|
210
305
|
if (!sel)
|
|
211
306
|
return;
|
|
@@ -222,75 +317,87 @@ function replaceRange(doc, range, replacement) {
|
|
|
222
317
|
range.insertNode(doc.createTextNode(replacement));
|
|
223
318
|
}
|
|
224
319
|
}
|
|
225
|
-
|
|
226
|
-
|
|
320
|
+
// ── Public entry point ────────────────────────────────────────────
|
|
321
|
+
/** Wire the spell-check into a TinyMCE editor instance. Idempotent. */
|
|
227
322
|
export function wireSpellcheck(editor) {
|
|
228
323
|
if (editor.__mailxSpellWired)
|
|
229
324
|
return;
|
|
230
325
|
editor.__mailxSpellWired = true;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
326
|
+
let sp = null;
|
|
327
|
+
let decorateTimer = null;
|
|
328
|
+
const scheduleDecorate = () => {
|
|
329
|
+
if (!sp)
|
|
330
|
+
return;
|
|
331
|
+
if (decorateTimer)
|
|
332
|
+
clearTimeout(decorateTimer);
|
|
333
|
+
decorateTimer = setTimeout(() => {
|
|
334
|
+
decorateTimer = null;
|
|
335
|
+
if (sp)
|
|
336
|
+
decorate(editor, sp);
|
|
337
|
+
}, DECORATE_DEBOUNCE_MS);
|
|
338
|
+
};
|
|
339
|
+
// Kick off the dictionary load. First decoration runs as soon as
|
|
340
|
+
// it resolves; subsequent runs are triggered by editor events.
|
|
341
|
+
getSpell().then((loaded) => {
|
|
342
|
+
sp = loaded;
|
|
343
|
+
installDecorationStyle(editor);
|
|
344
|
+
installSerializerFilter(editor);
|
|
345
|
+
decorate(editor, loaded);
|
|
346
|
+
}).catch((err) => {
|
|
347
|
+
console.error("[spellcheck] dict load failed:", err);
|
|
348
|
+
});
|
|
349
|
+
// Re-decorate on edits / paste / content swap. `nodechange` covers
|
|
350
|
+
// most of these; `input` catches typing in finer-grained events on
|
|
351
|
+
// some TinyMCE versions.
|
|
352
|
+
editor.on("input nodechange setcontent paste keyup", scheduleDecorate);
|
|
353
|
+
// Right-click handler. If the click landed on a marker span, show
|
|
354
|
+
// suggestions; otherwise let the default menu (WebView2's) fire.
|
|
355
|
+
const iframeDoc = editor.getDoc();
|
|
234
356
|
iframeDoc.addEventListener("contextmenu", (ev) => {
|
|
235
357
|
const e = ev;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
// the event's clientX/Y inside the iframe gives parent-relative
|
|
239
|
-
// coords.
|
|
240
|
-
const iframeEl = editor.iframeElement;
|
|
241
|
-
if (!iframeEl)
|
|
358
|
+
const target = e.target;
|
|
359
|
+
if (!target)
|
|
242
360
|
return;
|
|
243
|
-
const
|
|
244
|
-
if (!
|
|
245
|
-
return; // not on a word —
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
getSpell().then(sp => {
|
|
249
|
-
if (sp.correct(found.word))
|
|
250
|
-
return; // word IS in the dictionary, no menu
|
|
251
|
-
// Misspelled — suppress default and show suggestions.
|
|
252
|
-
const sugs = sp.suggest(found.word).slice(0, 7);
|
|
253
|
-
const iframeRect = iframeEl.getBoundingClientRect();
|
|
254
|
-
const menuX = iframeRect.left + e.clientX;
|
|
255
|
-
const menuY = iframeRect.top + e.clientY;
|
|
256
|
-
const items = [];
|
|
257
|
-
if (sugs.length === 0) {
|
|
258
|
-
items.push({ label: "(no suggestions)", action: () => { } });
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
for (const s of sugs) {
|
|
262
|
-
items.push({
|
|
263
|
-
label: s,
|
|
264
|
-
emphasized: true,
|
|
265
|
-
action: () => replaceRange(iframeDoc, found.range, s),
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
items.push({ label: "---", action: () => { } });
|
|
270
|
-
items.push({
|
|
271
|
-
label: `Add "${found.word}" to dictionary`,
|
|
272
|
-
action: () => addToUserDict(found.word, sp),
|
|
273
|
-
});
|
|
274
|
-
items.push({
|
|
275
|
-
label: "Ignore (this session)",
|
|
276
|
-
action: () => sp.add(found.word),
|
|
277
|
-
});
|
|
278
|
-
showSuggestionsMenu(document, menuX, menuY, items);
|
|
279
|
-
}).catch(err => {
|
|
280
|
-
// Dict load failed (network / corrupt files). Don't intercept
|
|
281
|
-
// the menu — let WebView2 default fire. Log so it's debuggable.
|
|
282
|
-
console.error("[spellcheck] dict load failed:", err);
|
|
361
|
+
const marker = target.closest?.(`span[${MARKER_ATTR}]`);
|
|
362
|
+
if (!marker)
|
|
363
|
+
return; // not on a misspelled word — default menu fires
|
|
364
|
+
const word = marker.textContent || "";
|
|
365
|
+
if (!word || !sp)
|
|
283
366
|
return;
|
|
284
|
-
});
|
|
285
|
-
// Preempt the browser default ONLY when we're about to show our
|
|
286
|
-
// own menu. We don't know synchronously whether the word is
|
|
287
|
-
// misspelled (the load is async), so we have to commit to either
|
|
288
|
-
// intercepting or not. Compromise: preempt always when on a
|
|
289
|
-
// word, then dismiss instantly if the word turned out correct.
|
|
290
|
-
// For the user's typical case (right-click on text), this means
|
|
291
|
-
// a brief moment where neither menu shows — acceptable.
|
|
292
367
|
e.preventDefault();
|
|
293
368
|
e.stopPropagation();
|
|
369
|
+
const sugs = sp.suggest(word).slice(0, 7);
|
|
370
|
+
const iframeEl = editor.iframeElement;
|
|
371
|
+
const iframeRect = iframeEl ? iframeEl.getBoundingClientRect() : { left: 0, top: 0 };
|
|
372
|
+
const items = [];
|
|
373
|
+
if (sugs.length === 0) {
|
|
374
|
+
items.push({ label: "(no suggestions)", action: () => { } });
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
for (const s of sugs) {
|
|
378
|
+
items.push({
|
|
379
|
+
label: s,
|
|
380
|
+
emphasized: true,
|
|
381
|
+
action: () => {
|
|
382
|
+
replaceMarker(editor, marker, s);
|
|
383
|
+
// Re-decorate so the replacement is checked too.
|
|
384
|
+
scheduleDecorate();
|
|
385
|
+
},
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
items.push({ label: "", action: () => { }, separator: true });
|
|
390
|
+
items.push({
|
|
391
|
+
label: `Add "${word}" to dictionary`,
|
|
392
|
+
action: () => { if (sp)
|
|
393
|
+
addToUserDict(word, sp); scheduleDecorate(); },
|
|
394
|
+
});
|
|
395
|
+
items.push({
|
|
396
|
+
label: "Ignore (this session)",
|
|
397
|
+
action: () => { if (sp)
|
|
398
|
+
sp.add(word); scheduleDecorate(); },
|
|
399
|
+
});
|
|
400
|
+
showSuggestionsMenu(document, iframeRect.left + e.clientX, iframeRect.top + e.clientY, items);
|
|
294
401
|
}, true);
|
|
295
402
|
}
|
|
296
403
|
//# sourceMappingURL=spellcheck.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spellcheck.js","sourceRoot":"","sources":["spellcheck.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,sEAAsE;AACtE,sEAAsE;AACtE,iCAAiC;AACjC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAExC,IAAI,YAAY,GAA2B,IAAI,CAAC;AAChD,KAAK,UAAU,QAAQ;IACnB,IAAI,YAAY;QAAE,OAAO,YAAY,CAAC;IACtC,YAAY,GAAG,CAAC,KAAK,IAAI,EAAE;QACvB,8DAA8D;QAC9D,8DAA8D;QAC9D,gEAAgE;QAChE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACvC,KAAK,CAAC,oBAAoB,CAAC;YAC3B,KAAK,CAAC,oBAAoB,CAAC;SAC9B,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,sCAAsC,MAAM,CAAC,MAAM,QAAQ,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;QACjG,CAAC;QACD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