Skip to content

Commit

Permalink
Disable writingsuggestions for the editable element
Browse files Browse the repository at this point in the history
FIX: Disable `writingsuggestions` for the editable element, to opt out of
Safari's new intelligence completions (which mess up in the editor).

Closes codemirror/dev#1486
  • Loading branch information
marijnh committed Dec 9, 2024
1 parent c946a84 commit 637e5b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editorview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 637e5b0

Please sign in to comment.