electron-userland / electron-spellchecker

Implement spellchecking, correctly
MIT License
237 stars 83 forks source link

Spellchecker does not work with Tinymce editor #121

Open DenitsaGencheva opened 6 years ago

DenitsaGencheva commented 6 years ago

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?

Anrock commented 6 years ago

@DenitsaGencheva what version of electron are you using? There were multiple bugs with spellchecker APIs not working in iframes and other places in Electron.

DenitsaGencheva commented 6 years ago

@Anrock thank for replying. Currently, I'm using electron 2.0.4 and the latest stable version of spellchecker. Which one should I use?

Anrock commented 6 years ago

@DenitsaGencheva 1.7 or 3.0+. https://github.com/electron/electron/issues/13514 https://github.com/electron/electron/issues/11868

Anrock commented 6 years ago

@DenitsaGencheva and anyway this lib looks abandoned, so consider migrating to something else. https://github.com/kwonoj/electron-hunspell looks like a good candidate.