# @paulbennetjoshua/electron-spellchecker

> Implement spellchecking, correctly

Latest version **0.0.8** (published 2019-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @paulbennetjoshua/electron-spellchecker
pnpm add @paulbennetjoshua/electron-spellchecker
yarn add @paulbennetjoshua/electron-spellchecker
bun add @paulbennetjoshua/electron-spellchecker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2019-08-28 |
| First published | 2018-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Unpacked size | 58.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | paulbennetjoshua |
| Keywords | spelling, electron, rx |

## Links

- npm: https://www.npmjs.com/package/@paulbennetjoshua/electron-spellchecker
- Repository: https://github.com/paulbennet/electron-spellchecker
- Issues: https://github.com/paulbennet/electron-spellchecker/issues
- npm.io page: https://npm.io/package/@paulbennetjoshua/electron-spellchecker

## Dependencies (12)

- [cld](https://npm.io/package/cld.md) ^2.5.1
- [pify](https://npm.io/package/pify.md) ^4.0.1
- [rxjs](https://npm.io/package/rxjs.md) ^5.5.12
- [bcp47](https://npm.io/package/bcp47.md) ^1.1.2
- [debug](https://npm.io/package/debug.md) ^4.1.1
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [spawn-rx](https://npm.io/package/spawn-rx.md) ^2.0.7
- [lru-cache](https://npm.io/package/lru-cache.md) ^5.1.1
- [keyboard-layout](https://npm.io/package/keyboard-layout.md) ^2.0.16
- [rxjs-serial-subscription](https://npm.io/package/rxjs-serial-subscription.md) ^0.1.1
- [@aabuhijleh/electron-remote](https://npm.io/package/@aabuhijleh/electron-remote.md) ^1.4.0
- [@felixrieseberg/spellchecker](https://npm.io/package/@felixrieseberg/spellchecker.md) ^4.0.10

## Recent versions

- 0.0.8 (latest) — 2019-08-28
- 0.0.7 — 2019-08-28
- 0.0.6 — 2019-08-28
- 0.0.5 — 2019-07-17
- 0.0.4 — 2018-12-11
- 0.0.3 — 2018-12-11
- 0.0.1 — 2018-09-26

## README

Please refer original [readme.md](https://github.com/electron-userland/electron-spellchecker/blob/master/README.md) for base documentation.

---

**Changes done in this fork**

1. Modified <code>attachToInput</code> api, so that you can manually initialize spellcheck event listening over a target parent dom element. This was done so that a embedded iframe's document body can also be spellchecked (some richtext-editors still use iframe).

Code sample:

```javascript
// ...
let iframeDocumentBody = null;

try {
  iframeDocumentBody = document.body.querySelectorAll("iframe")[0].contentWindow.document.body;
} catch (err) {}

if (iframeDocumentBody) {
  spellcheckHandler.attachToInput(null, {
    targetElement: iframeDocumentBody
  });
}
// ...
```

---
_Source: https://npm.io/package/@paulbennetjoshua/electron-spellchecker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
