Skip to content

Japanese text issues when switching between Visual and HTML modes #709

@bummytime

Description

@bummytime

There appears to be a few issues while entering multibyte text (in this case Japanese) into Aztec.

japan_text

Steps to reproduce the behavior

There are two potential issues here.

👉 Tapping enter in HTML mode while multibyte text exists clears it:

  1. Make sure Japanese - Kana keyboard is active.
  2. Run the editor demo and enter some random text.
  3. Switch to HTML mode and hit the return button in the lower right of the keyboard.
  4. Notice the text disappears
  5. 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:

  1. Make sure Japanese - Kana keyboard is active.
  2. Run the editor demo and enter some random text.
  3. Switch to HTML mode and hit the return button in the lower right of the keyboard.
  4. Notice the text disappears
  5. Switch to visual mode — notice the text returns.
  6. Switch to HTML mode — notice the text is fine.
  7. Paste some additional multibyte text into the editor (e.g. 私はものが好き)
  8. Tap the return button and notice how the preceding text becomes scrambled.
  9. 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.

Tested on iPhone 7+ and Sim, iOS 10.3.3, Aztec develop

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions