
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
react-quill-spell-checker
Advanced tools
Integrate any spell checker on Quill.js editor

A live demo can be found at https://andersoncoder.github.io/react-quill-spell-checker. The source code for a complete example with react-quill can be found in /example.
npm install --save react-quill-spell-checker
import React, { useState } from 'react'
import ReactQuill, { Quill } from 'react-quill'
import 'react-quill/dist/quill.snow.css'
import registerQuillSpellChecker from 'react-quill-spell-checker'
registerQuillSpellChecker(Quill)
<ReactQuill
modules={{
spellChecker: {
// options here
}
}}
/>
Using this module will change the contents of the editor to add control elements for spell checking and grammar checking. Look at "Getting the contents of the editor" for information on how to use the contents of the editor.
This package exports a default function to register the SpellChecker module to Quill.js.
import Quill from 'quill'
import registerQuillSpellChecker from 'react-quill-spell-checker'
registerQuillSpellChecker(Quill)
This adds the SpellChecker module and the suggestion blot element to Quill.js so they can be used on any editor using that Quill import.
Options can be provided into the spellChecker option of the Quill module.
<ReactQuill
modules={{
spellChecker: {
// options here
}
}}
/>
Available options are:
api: (default uses LanguageTool API) The Spell Checker API params, including url, body (usually contains the text and language required params for the API to work), headers, method, mode and mapResponse (used to map/transform the response of the API endpoint so that the spell checker understands).disableNativeSpellcheck (default true): Disable the native spellchecker on the editor to prevent two conflicting systems trying to underline the same wordscooldownTime (default 3000): The time after a user stops typing before the SpellChecker server is queriedshowLoadingIndicator (default true): Show a loading indicator when the SpellChecker server is queried in the bottom right corner of the editorYou can use any spell checker API, such as LanguageTool, if you plan on using the library for larger sites, please consider using your own server.
To prevent spamming the server, a cooldown time is used. By default, this is set to 3000 milliseconds so the server is queries only once the user stopped typing 3s ago.
This library adds a custom blot element to the editor that is used to add formatting and click listeners. This transforms content like this:
<p>This text conatins typos,, that should get corrected by SpellChecker</p>
into this:
<p>
This text
<quill-spck-match
data-offset="10"
data-length="8"
>
conatins
</quill-spck-match>
typos
<quill-spck-match
data-offset="24"
data-length="2"
>
,,
</quill-spck-match>
that should get corrected by SpellChecker
</p>
When getting the contents of the editor, the custom blot elements need to be removed. For this, the library exposes a getCleanedHtml method that removes the elements from an HTML string.
import { getCleanedHtml } from 'react-quill-spell-checker'
const dirtyContents = quill.root.innerHTML
const cleanedContents = getCleanedHtml(quillHtml)
Alternatively, removeSuggestionBoxes can be used to remove the custom blot elements from the editor's content itself. Please note that this will trigger an update of the editor which will re-trigger the module to add them back again.
import { removeSuggestionBoxes } from "react-quill-spell-checker";
const quill = new Quill(...);
removeSuggestionBoxes(quill);
By default, the library uses a simple, light-mode design for the suggestion boxes. By overriding the CSS classes used you can customize the design. Take a look at /src/QuillSpellChecker.css for all styles and classes used by the default design
npm install in the root directory and /example (npm i && cd example && npm i)npm start in /example to start development using the example projectMIT © andersoncoder
This project is created using create-react-hook.
FAQs
Integrate any spell checker on Quill.js editor
The npm package react-quill-spell-checker receives a total of 65 weekly downloads. As such, react-quill-spell-checker popularity was classified as not popular.
We found that react-quill-spell-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.