0.11.0 • Published 3 years ago

@grammarly/react-quill v0.11.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Grammarly plugin for React + Quill

Bringing the Grammarly experience to apps that use Quill. No browser extension is required.

Getting started

Install the Grammarly plugin for Quill:

npm install @grammarly/react-quill

Set up an instance of the Quill editor with Grammarly:

// 1. Import Grammarly components
import { GrammarlyQuill } from "@grammarly/react-quill";

import React from "react";
import ReactQuill from "react-quill";

export function QuillEditor() {

  // 2. Render using <GrammarlyQuill>
  return (
    <GrammarlyQuill clientId="your-client-id-here">
      {({ setEditor }) => {
        <ReactQuill ref={quillRef => setEditor(quillRef.getEditor())}>
      }}
    </GrammarlyQuill>
  );
}