wordpress-mobile / AztecEditor-iOS

A reusable native iOS visual HTML text editor component.
Mozilla Public License 2.0
612 stars 146 forks source link

Toggle pre is not working #1380

Open SynthesOne opened 10 months ago

SynthesOne commented 10 months ago

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.

https://github.com/wordpress-mobile/AztecEditor-iOS/assets/75531082/74d92e2d-1fff-446c-92e4-c8100fb0beef