Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spellchecker does not work with Tinymce editor #121

Open
DenitsaGencheva opened this issue Sep 4, 2018 · 4 comments
Open

Spellchecker does not work with Tinymce editor #121

DenitsaGencheva opened this issue Sep 4, 2018 · 4 comments

Comments

@DenitsaGencheva
Copy link

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
Copy link

Anrock commented Sep 4, 2018

@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
Copy link
Author

@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
Copy link

Anrock commented Sep 4, 2018

@Anrock
Copy link

Anrock commented Sep 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants