1.0.6 • Published 1 year ago

@farscrl/tiptap-extension-spellchecker v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago