Skip to content

uluumbch/quill-synonym

Repository files navigation

Quill Synonym Module

A Quill.js module that adds synonym lookup functionality to your editor.

Installation

npm install quill-synonym

Usage

To use the module, simply import it into your project and initialize it with the desired options.

import Quill from 'quill';
import QuillSynonym from 'quill-synonym';
import 'quill-synonym/dist/synonym.css';

// Register the module
Quill.register('modules/synonym', QuillSynonym);

// Initialize Quill with the synonym module
const quill = new Quill('#editor', {
    modules: {
        toolbar: [
            ['bold', 'italic'],
            ['synonym'] // Add synonym button to the toolbar
        ],
            synonym: {
                container: '#editor'
            }
        },
    theme: 'snow'
});

Demo

Demo

See the demo for live examples.

Features

  • Adds a synonym lookup button to the toolbar
  • Uses Datamuse API for synonym suggestions
  • Easy word replacement with click selection

About

A Quill.js module for finding and replacing words with synonyms

Resources

License

Stars

Watchers

Forks

Packages

No packages published