-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Description
There appears to be a few issues while entering multibyte text (in this case Japanese) into Aztec.
Steps to reproduce the behavior
There are two potential issues here.
👉 Tapping enter in HTML mode while multibyte text exists clears it:
- Make sure Japanese - Kana keyboard is active.
- Run the editor demo and enter some random text.
- Switch to HTML mode and hit the return button in the lower right of the keyboard.
- Notice the text disappears
- Switch to visual mode — notice the text returns.
5 Switch to HTML mode — notice the text is fine.
👉 Adding additional multibyte text in HTML mode can scramble previous text:
- Make sure Japanese - Kana keyboard is active.
- Run the editor demo and enter some random text.
- Switch to HTML mode and hit the return button in the lower right of the keyboard.
- Notice the text disappears
- Switch to visual mode — notice the text returns.
- Switch to HTML mode — notice the text is fine.
- Paste some additional multibyte text into the editor (e.g. 私はものが好き)
- Tap the return button and notice how the preceding text becomes scrambled.
- Switch modes again (HTML -> Visual -> HTML) and see that the text is restored.
Note that there are a few other ways to trigger the previous text getting scrambled in HTML mode - this is just one example.
