wordpress-mobile / wordpress-mobile/AztecEditor-iOS
Toggle pre is not working
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 669
- Forks
- 153
- Avg merge
- 11h 27m
- Merged PRs (30d)
- 4
Description
Hello, can you help me?
The project is just fine, but there is one problem that I couldn't solve on my own. Your togglePre(range: NSRange) method is not working.
I attach a video of your example, in which I changed the button responsible for the toggleCode(range: NSRange) method to togglePre(range: NSRange). The pre tag is turned on, but it is not turned off anymore.
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.
Research direction
Start by reproducing the behavior shown in the attached video with the example button changed to call togglePre(range: NSRange). Read the togglePre(range: NSRange) implementation and compare its on/off behavior with toggleCode(range: NSRange). Done means the pre tag can be both enabled and disabled for the selected range.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100