electron/spec/fixtures/pages/webframe-spell-check.html
Nitish Sakhawalkar a9ca152069 feat: Spellchecker Async Implementation (#14032)
* feat:Spellchecker Async Implementation

* Adhere to chromium style

* Updating dependency to use gh branch

* Update docs and electron-typescript-definitions module

* Fix lint

* Update electron typescript definitions version

* Update spec

* Address review
2018-10-18 11:11:53 -05:00

14 lines
351 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
const {ipcRenderer, webFrame} = require('electron')
webFrame.setSpellCheckProvider('en-US', {
spellCheck: (words, callback) => {
callback(words)
ipcRenderer.send('spec-spell-check', words, callback != undefined)
}
})
</script>
<input autofocus />
</body>
</html>