quill icon indicating copy to clipboard operation
quill copied to clipboard

chrome 86-90 in window 10 x86_64 ,editor-change does not trigger when inputting special characters such as '。~'

Open xuanbingbingo opened this issue 4 years ago • 2 comments

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

xuanbingbingo avatar Apr 19 '21 07:04 xuanbingbingo

// 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;
      }
    });
  }

regnoh avatar Dec 02 '21 02:12 regnoh

Please test with v2.0.0-rc.2

benbro avatar Feb 20 '24 23:02 benbro

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:

quill-bot avatar Apr 17 '24 11:04 quill-bot