Skip to content

iOS 18 ,Chinese input,use toggleMark(range: NSRange, color: String?, resetColor: Bool) bug #1411

@youlookwhat

Description

@youlookwhat

Describe the bug

pod "WordPress-Aztec-iOS", ~>1.19.11
pod "WordPress-Editor-iOS", ~>1.19.11

iOS 18 and Chinese input,

I used toggleMark but found a bug. In Chinese, the color would break when input continuously.

It is certain to occur.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'empty page'
  2. Click on 'richTextView.toggleMark(range: richTextView.selectedRange, color:.green, resetColor: false)'
  3. iOS18 , Chinese input。我(停顿)是
  4. 是 has become black

Image

<p>123<mark style="background-color:rgba(0, 0, 0, 0);color:#ffff9500" class="has-inline-color">我</mark>是</p>

The display is orange, but what html gets is the absence of the mark tag

Expected behavior
getHtml is true is:

<p>123<mark style="background-color:rgba(0, 0, 0, 0);color:#ffff9500" class="has-inline-color">我是</mark></p>

Screenshots
is up

Smartphone (please complete the following information):

  • Device: iPhone 16 plus
  • OS: iOS 18
  • Browser: no
  • Version: 1.19.11

Additional context

  1. iOS 18
  2. Chinese input,
  3. use toggleMark(range: NSRange, color: String?, resetColor: Bool)
  4. Input Chinese word for word

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions