sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.87k stars 1.13k forks source link

"Clean block" button won't clear the formatting of highlighted text. #461

Open tveronezi opened 7 years ago

tveronezi commented 7 years ago

Observed Results: When a user highlights bolded text and clicks on the "Clean block" button, only part of the formatting markup is removed.

Repro Steps: Edit a markdown field. (Ex: https://simplemde.com/) Enter some text and click the "bold" icon - the text will turn bold With the text still highlighted, click the "clean block" button (erase icon - if available) or press cmd+E The "bold" markdown is only partially removed.

tveronezi commented 7 years ago

Video reproducing another error. https://www.youtube.com/watch?v=cDuW5PX5pjE