5

前端大佬进,我发现了一个 CKEditor5 非常容易复现且长期存在无人修复的 BUG

 1 year ago
source link: https://www.v2ex.com/t/891990
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

前端大佬进,我发现了一个 CKEditor5 非常容易复现且长期存在无人修复的 BUG

  vone · 2 小时 12 分钟前 · 925 次点击

最近在公司的一个项目中引入了 CKEditor5 ,本来想着知名项目应该不会有什么大问题。 但是在发布后,同事测试随手输入一个中文句号,编辑器竟然显示了两个。

然后我就去官网 demo 上测试,也可以复现。

复现步骤:

1.Windows 系统下( macOS 等其他系统无法复现)使用浏览器打开 https://ckeditor.com/docs/ckeditor5/latest/examples/builds/classic-editor.html

2.全选清空浏览器的内容(重要步骤)

3.切换到中文符号,键盘输入一个中文句号(。)

(浏览器版本: Microsoft Edge 106.0.1370.52 ,操作系统版本: Windows 11 21H2 )

然后就能得到两个“。”

我目前提了 issue ,但是 CKEditor 的人还没回复。

复现视频:

https://user-images.githubusercontent.com/17821872/198577151-fb5b5125-515d-4e6d-a4e6-2f03018aca6a.mp4

第 1 条附言  ·  1 小时 33 分钟前

补充一下:使用的是系统自带的微软拼音

我上周跟同事说了国产富文本编辑器都是垃圾,只有这个才是高级货。

现在好尴尬!

目前打算在change事件里面replace一下("。。"=>"。"),先把这个问题应付过去。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK