electron-spellchecker icon indicating copy to clipboard operation
electron-spellchecker copied to clipboard

Spellchecker does not work with Tinymce editor

Open DenitsaGencheva opened this issue 6 years ago • 4 comments

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 avatar Sep 04 '18 07:09 DenitsaGencheva

@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 avatar Sep 04 '18 12:09 Anrock

@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 avatar Sep 04 '18 15:09 DenitsaGencheva

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

Anrock avatar Sep 04 '18 15:09 Anrock

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

Anrock avatar Sep 04 '18 15:09 Anrock