electron-spellchecker
electron-spellchecker copied to clipboard
Spellchecker does not work with Tinymce editor
We have enabled the spellchecker in our electron desktop app, but it does not work in the most important place - the editor. We are using the TinyMCE editor. Here is the way we build our app:
mainWindow = new BrowserWindow({
width: 1200,
height: 800,
webPreferences: {
nodeIntegration: false,
preload: __dirname + '/preload.js'
}
})
mainWindow.loadURL(<website url>);
And in the preload.js we load the code for the spellchecker the same way as shown in this example: https://ourcodeworld.com/articles/read/485/how-to-implement-and-enable-the-grammar-and-spellchecker-in-electron-framework
Is there a way to make it work in the iframe that is placed by the TinyMCE editor?
@DenitsaGencheva what version of electron are you using? There were multiple bugs with spellchecker APIs not working in iframes and other places in Electron.
@Anrock thank for replying. Currently, I'm using electron 2.0.4 and the latest stable version of spellchecker. Which one should I use?
@DenitsaGencheva 1.7 or 3.0+. https://github.com/electron/electron/issues/13514 https://github.com/electron/electron/issues/11868
@DenitsaGencheva and anyway this lib looks abandoned, so consider migrating to something else. https://github.com/kwonoj/electron-hunspell looks like a good candidate.