hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.42k stars 917 forks source link

fix issue#658,重构插入代码块逻辑 #661

Closed ygj6 closed 3 years ago

ygj6 commented 3 years ago

fix issue #658 #632

修改后的场景为:

  1. 未选中任何文本状态,点击插入代码按钮,插入如下格式,并且选中language
    ```language
</pre>
2. 选中文本状态,点击插入代码按钮,插入如下格式,并且保持选中的文本被选择:
<pre>

选择的文本


</pre>