iOS 18 ,Chinese input,use toggleMark(range: NSRange, color: String?, resetColor: Bool) bug
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start from the toggleMark(range:color:resetColor:) entry point and reproduce the issue on iOS 18 with Chinese input, entering characters continuously. Inspect how the marked range and generated HTML change after composition pauses; done means the color remains applied and getHtml produces one mark element covering the complete input, such as “我是”.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Swift
- Stars
- 669
- Forks
- 153
- Avg merge
- 11h 27m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wordpress-mobile/AztecEditor-iOS
-
Bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
wordpress-mobile/AztecEditor-iOS#1417 · 1 comment ·
-
wordpress-mobile/AztecEditor-iOS#1401 · 2 comments · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
wordpress-mobile/AztecEditor-iOS#1399 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
wordpress-mobile/AztecEditor-iOS#1398 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
wordpress-mobile/AztecEditor-iOS#1397 ·
All issues in wordpress-mobile/AztecEditor-iOS
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
type: docs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
googleapis/google-cloud-swift#971 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla-mobile/firefox-ios#35743 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
manaflow-ai/cmux#13417 ·