[PR #1618] fix(editor): enforce spellcheck toggle on CodeMirror contenteditable #1467

Open
opened 2026-03-03 00:26:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BoostIO/BoostNote-App/pull/1618
Author: @nicepopo86-lang
Created: 2/16/2026
Status: 🔄 Open

Base: masterHead: fix/spellcheck-contenteditable-695


📝 Commits (1)

  • c1affea fix(editor): enforce spellcheck attrs on CodeMirror contenteditable

📊 Changes

1 file changed (+20 additions, -2 deletions)

View changed files

📝 src/cloud/lib/editor/components/CodeMirrorEditor.tsx (+20 -2)

📄 Description

Summary

This fixes editor spellcheck toggle behavior for the CodeMirror contenteditable input.

What changed

  • Ensure spellcheck is applied directly to CodeMirror's input field (getInputField()).
  • Apply autocorrect and autocapitalize attributes consistently with the toggle state.
  • Re-apply attributes both on editor mount and whenever config updates.

Why

The settings toggle (general.enableSpellcheck) existed, but browser spellcheck behavior could still fail to reflect runtime state in contenteditable mode.

Scope

  • No API changes
  • No schema changes
  • Frontend editor behavior only

Related issue: #695


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BoostIO/BoostNote-App/pull/1618 **Author:** [@nicepopo86-lang](https://github.com/nicepopo86-lang) **Created:** 2/16/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `fix/spellcheck-contenteditable-695` --- ### 📝 Commits (1) - [`c1affea`](https://github.com/BoostIO/BoostNote-App/commit/c1affea12ddd2425681af98e8a032f6fe214ddce) fix(editor): enforce spellcheck attrs on CodeMirror contenteditable ### 📊 Changes **1 file changed** (+20 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cloud/lib/editor/components/CodeMirrorEditor.tsx` (+20 -2) </details> ### 📄 Description ## Summary This fixes editor spellcheck toggle behavior for the CodeMirror contenteditable input. ### What changed - Ensure `spellcheck` is applied directly to CodeMirror's input field (`getInputField()`). - Apply `autocorrect` and `autocapitalize` attributes consistently with the toggle state. - Re-apply attributes both on editor mount and whenever config updates. ## Why The settings toggle (`general.enableSpellcheck`) existed, but browser spellcheck behavior could still fail to reflect runtime state in contenteditable mode. ## Scope - No API changes - No schema changes - Frontend editor behavior only Related issue: #695 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#1467
No description provided.