prosemirror-languagetool

LanguageTool plugin for ProseMirror. Grammar and spelling checks with inline error highlighting and click-to-fix suggestions.

📝 Grammar Checking

Detects grammar issues with orange wavy underlines.

🔤 Spell Checking

Highlights misspellings with red wavy underlines.

💡 Click-to-Fix

Click an error to see suggestions and apply fixes instantly.

Efficient

Checks run only after you pause typing, keeping API usage minimal.

Live Demo

Try editing the text below. Click on underlined errors to see suggestions.

Grammar and spelling checks powered by LanguageTool.

Quick Start

1. Install the package

npm install prosemirror-languagetool

2. Add the plugin to your editor

import { grammarPlugin } from "prosemirror-languagetool";

grammarPlugin({
  languageToolCheckURL: "https://api.languagetoolplus.com/v2/check",
  language: "en-US",
  actionPopup: true,
});

3. Include the stylesheet

import "prosemirror-languagetool/style/prosemirror.css";