Update Value Of Existing Editors
dalezak opened this issue · comments
Dale Zak commented
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?
Dale Zak commented
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...