Skip to content

superchu/electron-easy-spellcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

electron-easy-spellcheck

Note: This library is inspired by electron-spell-check-provider and it works pretty much the same. The main difference is that this library tries to solve the issue with input lags by introducing a cache.

Installation

yarn add electron-easy-spellcheck

or

npm install electron-easy-spellcheck

Usage

// In the renderer process:
const webFrame = require('electron').webFrame;
const EasySpellCheck = require('electron-easy-spellcheck');

webFrame.setSpellCheckProvider('en-US', true, new EasySpellCheck());

Cache TTL

The cache has a pre-defined TTL, meaning that the cache will be cleared when the user haven't typed anything for the set TTL.

The default TTL is 10 seconds. You can modify this by passing in the desired TTL in the constructor like this new EasySpellCheck(CACHE_TTL).

Example

Run yarn start to start the example application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published