electron/spec/fixtures/pages/webframe-spell-check.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>