mirror of https://github.com/electron/electron
15 lines
351 B
HTML
15 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>
|