Open ata-wt opened 2 months ago
Hello, have you solved this problem? @ata-wt
@Libpzzz Unfortunately not. I switched to another text editor 😐. But I found temp solution for a while to use quill react version but it has deprecation warning. Then found this forked version as a temporary solution.
All right, I'll see if there's any other solution.
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2024年9月20日(星期五) 下午3:49
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [slab/quill] Quill Custom Toolbar gives addRange(): The given range isn't in document.
in React (Issue #4343)
@Libpzzz Unfortunately not. I switched to another text editor 😐. But I found temp solution for a while to use quill react version but it has deprecation warning. Then found this forked version as a temporary solution.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
I copy pasted React example from https://quilljs.com/playground/react and added custom toolbar. To use with custom toolbar I added just
module
into example. There is no issue onChange function however when I click any item from toolbar (bold, italic) I gotaddRange(): The given range isn't in document.
log and cannot change selected behaviour.Here is sandbox link -> https://codesandbox.io/p/sandbox/quil-test-d4ngvg?file=%2Fsrc%2FQuill.tsx
version: "quill": "^2.0.2"