AztecEditor-iOS
AztecEditor-iOS copied to clipboard
iOS 18 ,Chinese input,use toggleMark(range: NSRange, color: String?, resetColor: Bool) bug
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:
- Go to 'empty page'
- Click on 'richTextView.toggleMark(range: richTextView.selectedRange, color:.green, resetColor: false)'
- iOS18 , Chinese input。我(停顿)是
- 是 has become black
<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
- iOS 18
- Chinese input,
- use toggleMark(range: NSRange, color: String?, resetColor: Bool)
- Input Chinese word for word