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

Update Value Of Existing Editors #381

Open
dalezak opened this issue Jun 6, 2017 · 1 comment
Open

Update Value Of Existing Editors #381

dalezak opened this issue Jun 6, 2017 · 1 comment

Comments

@dalezak
Copy link

dalezak commented Jun 6, 2017

I have a page with multiple editors for managing multilingual content.

Each editor has a translate button, which uses Google Translate to translate the English editor's content, and now need to update the non-English editor with the translation.

Looks like editor.setValue(html, true); can update the value however I can not find a way to obtain the existing editors on the page.

Any idea how I can achieve this?

@dalezak
Copy link
Author

dalezak commented Jun 19, 2017

As a workaround, I upon initializing the editors, I stored them in a global hash, which I later accessed when I needed a specific editor. Not ideal, but it works...

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

1 participant