@paulbennetjoshua/electron-spellchecker
Implement spellchecking, correctly
Last updated 6 months ago by paulbennetjoshua .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @paulbennetjoshua/electron-spellchecker 
SYNC missed versions from official npm registry.

Please refer original readme.md for base documentation.


Changes done in this fork

  1. Modified attachToInput 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:

// ...
let iframeDocumentBody = null;

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

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

Current Tags

  • 0.0.8                                ...           latest (6 months ago)

7 Versions

  • 0.0.8                                ...           6 months ago
  • 0.0.7                                ...           6 months ago
  • 0.0.6                                ...           6 months ago
  • 0.0.5                                ...           7 months ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 7
Dependencies (12)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |