electron/spec/fixtures/pages/webframe-spell-check.html

14 lines
298 B
HTML
Raw Normal View History

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