From 637e5b02c9e925db2258240d63891fa936d8426d Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 9 Dec 2024 16:30:29 +0100 Subject: [PATCH] Disable writingsuggestions for the editable element FIX: Disable `writingsuggestions` for the editable element, to opt out of Safari's new intelligence completions (which mess up in the editor). Closes https://github.com/codemirror/dev/issues/1486 --- src/editorview.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editorview.ts b/src/editorview.ts index 39f8ecb..e111d37 100644 --- a/src/editorview.ts +++ b/src/editorview.ts @@ -517,6 +517,7 @@ export class EditorView { spellcheck: "false", autocorrect: "off", autocapitalize: "off", + writingsuggestions: "false", translate: "no", contenteditable: !this.state.facet(editable) ? "false" : "true", class: "cm-content",