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

Question: Change spellchecker_language on the fly #4830

Open
dezertdezine opened this Issue Feb 14, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@dezertdezine
Copy link

dezertdezine commented Feb 14, 2019

TinyMCE version 4.9.2

I'm doing this to grab content in different languages on the fly

            $.ajax({
                type: 'GET',
                url: admin_url + '/pages_process.php',
                data: {
                    id: id,
                    page_type: page_type,
                    lang: lang
                },
                success: function (data) {
                    var html = data;
                    tinymce.get('content').setContent(html);
                }
            });

Is it possible to set the spellchecker_language in a similar way to

tinymce.get('content').setContent(html);

...something like

tinymce.get('spellchecker_language').setSpellcheckerLanguage(lang);

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.