quill
quill copied to clipboard
chrome 86-90 in window 10 x86_64 ,editor-change does not trigger when inputting special characters such as '。~'
input special characters, such as '。~' and so on
Expected behavior:
editor-change listener trigger when input chinese characters'。' or '~'
Actual behavior:
editor-change listener does not trigger when input chinese characters'。' or '~'
Platforms:
Browser: Chrome 86.0.4240.75 OS: Windows 10 x64
Version: 2.0.0-dev.4
// quill/core/selection.js
handleComposition() {
...
this.root.addEventListener('compositionupdate', (data) => {
// 匹配除中文、字母、数字外的特殊字符,合成输入法的特殊字符不走 batch 更新
const reg = /[^\u4e00-\u9fa5a-zA-Z\d]+/;
if (reg.exec(data.data)) {
this.composing = false;
return;
}
});
}
Please test with v2.0.0-rc.2
Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide :pray: