Jack

Results 6 comments of Jack

This might be a possible solution: ``` document.addEventListener('click', e => { const editorEl = document.querySelector(YOUR_EDITOR_ID/CLASS); if (!editorEl?.contains?.(e?.target)) { // click outside editor // do something such as cancel highlight }...

> I think you need to extend from Container and add a CustomDivBlot too, view https://github.com/quilljs/quill/blob/main/packages/quill/src/formats/table.ts > > It should be easier to extend from Block (blots/block) and add a...

``` editor?.addEventListener('scroll', () => { // reposition or just hide the box }) ```

Instend of 'window.Quill = Quill;' It might be an another choise: ``` if (!window?.Quill?.find) { window.Quill = {}; windowQuill.find = Quill.find; } ```

That's because you didn't save the style of the picture to your editor data. formats: ['image', 'width'] may be needed. Also see https://github.com/kensnyder/quill-image-resize-module/issues/10