1ec5 / avim

Vietnamese input method extension (IME) for Firefox, Thunderbird, SeaMonkey, Komodo, etc. — bộ gõ tiếng Việt dành cho Firefox, Thunderbird, SeaMonkey, Komodo, …
http://avim.1ec5.org/
MIT License
46 stars 4 forks source link

Orion editor support is broken; modifications render but do not persist #40

Open 1ec5 opened 10 years ago

1ec5 commented 10 years ago

In an Eclipse Orion editor, such as the one here, typing chu+~ in VIQR gets you “chữ”, but as soon as you press any key or click anywhere, the word reverts to “chu”. Effectively, Orion support is just an illusion.

1ec5 commented 10 years ago

The original Orion support, which I wrote years ago, assumed (correctly at the time) that the originalTarget would be div#clientDiv.editorContent. Orion’s frontend appears to have been rewritten since then, so now AVIM falls back on contenteditable support, which doesn’t touch Orion’s model.

1ec5 commented 10 years ago

In fact, no IME extension on either Firefox or Chrome works with Orion. Google Input Tools comes the closest, allowing you to enter an entire word before the word disappears. On the Mac at least, even system IMEs have trouble with Orion: after committing a composition, you can no longer start a new composition.

1ec5 commented 10 years ago

originalTarget is now div.textviewContent. Some Orion functionality can be accessed through window.orion and window.orion.editor, but everything else is neatly hidden away. It seems like most AVIM’s ordinary contenteditable support should be adequate, but Orion is listening for the obsolete textinput event instead of input (or compositionstart and compositionend in the case of system IMEs).