nossas / slate-editor

A complete rich text editor based on SlateJS framework
https://slate-editor.bonde.org
MIT License
263 stars 56 forks source link

使用中文输入法输入带下划线格式富文本会把拼音和汉字一起带进来. #87

Open qhwc2009 opened 5 years ago

qhwc2009 commented 5 years ago

我有个中文拼音输入法的问题. 首先选中下划线按钮, 输入几个文字, 然后不选中下划线按钮, 再输入中文, 那么会把拼音和汉字都输入进去, 并且拼音选不中.

I have a problem with Chinese Pinyin input method. First select the underline button, enter a few chinese words, then do not select the underline button, then enter Chinese, then the pinyin and Chinese characters will be all entered, and the pinyin is not selected.

qhwc2009 commented 5 years ago

重现的步骤:

  1. 选中下划线格式, 输入一些带下划线的内容
  2. 打开拼音输入法, 并取消下划线格式, 输入一些汉字, 点击回车

Steps to reproduce:

  1. Select the underline format and enter some underlined content.
  2. Open the Pinyin input method, and cancel the underline format, enter some Chinese characters, click Enter