1.0.5 • Published 2 months ago

@farscrl/tiptap-extension-spellchecker v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Tiptap spellchecker extension

This is an extension to integrate a spellchecker into the tiptap editor.

The extension does not implement a spellchecker itself: you have to pass it a proofreader object implementing the IProofreaderInterface interface. That proofreader can work locallyin the browser, or it can call an online service, or whatever you want to use as spellchecking service.

Usage

Install the dependency

npm install @farscrl/tiptap-extension-spellchecker

then include the extension to the tiptap editor

const myProofreader = new Proofreader(); // implementing IProofreaderInterface
new Editor({
    extensions: [
        StarterKit, 
        SpellcheckerExtension.configure({ 
            proofreader: myProofreader,
            uiStrings: {
                noSuggestions: 'No suggestions found'
            }
        })
    ],
});

The uiStrings object contains strings used for the minimal UI of the extension. If you don't provide that object, default strings are used.

Credits

This extension is inspired by the tiptap-languagetool extension.

1.0.5

2 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago