Repository navigation
fix(web): keep Grammarly out of every app - #23
Merged
Merged
Conversation
The apps check spelling themselves, and Grammarly's overlays on Flutter's hidden text fields interfere with editing. Each app's web/index.html opts out: the data-gramm, data-gramm_editor and data-enable-grammarly "false" attributes on <html> and <body>, and an inline script that puts them on every input, textarea and contenteditable Flutter adds (MutationObserver) and on the focused field (capturing focusin, ahead of the extension's handler). Spec 01 §2.4 documents it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Maintainer change, no board task.
Summary
Wonky Work checks spelling itself (
wonky_spellcheck), and Grammarly's overlays on Flutter's hidden text fields interfere with editing. Grammarly is now turned off in Write, Sheets, Slides and Drive:data-gramm="false" data-gramm_editor="false" data-enable-grammarly="false"on<html>and<body>in each app'sweb/index.html.<input>/<textarea>elements on demand (under<flt-text-editing-host>, in the light DOM), so an inline script puts the same attributes on everyinput,textareaandcontenteditableas it is added (MutationObserver), and on the focused field (capturingfocusin, which runs before the extension's own focus handler).specs/01-architecture.md§2.4 has a new No Grammarly item, including that a new app'sindex.htmlmust copy the attributes and the script.Test plan
--wasm), sign-in page at http://localhost:8082/write/:<html>,<body>and all of Flutter's fields (email, password, hidden submit) carry the three attributes, including the focused field after clicking into the password box; no console errorsdart analyze/dart formatnot affected); Sheets, Slides and Drive got the identicalindex.htmlchange but weren't built🤖 Generated with Claude Code