Voog / wysihtml

Open source rich text editor for the modern web

Home Page:http://wysihtml.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update Value Of Existing Editors

dalezak opened this issue · comments

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?

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...