Open HadesSik opened 1 year ago
I solved it with the code below
src/modules/autoFormat.js in this.quill.on(Quill.events.TEXT_CHANGE)
if(transformed) { setTimeout(() => { this.quill.setSelection(this.quill.getLength() - endSelIndex, 'api') }, 0); }
to
if (transformed) { const from = this.quill.getLength() - endSelIndex; const to = endSelIndex; if (isEnter) { setTimeout(() => { this.quill.setSelection(from, 0, "api"); }, 0); } else { setTimeout(() => { this.quill.setSelection(from, to, "api"); }, 0); } }
I solved it with the code below
src/modules/autoFormat.js in this.quill.on(Quill.events.TEXT_CHANGE)
to