Muzeum Polskiej Sieci Web

Results 3 comments of Muzeum Polskiej Sieci Web

Workaround ```javascript quill.container.addEventListener('paste', ev => { const text = ev.clipboardData.getData('text/plain'); ev.preventDefault(); const html = `${text}`; const clipboard = quill.getModule('clipboard'); clipboard.dangerouslyPasteHTML(quill.getSelection().index, html); }, true); ``` Anyway, the correct way to implement...

When you copy URL from browser's address bar, it's recognized as text and clipboard matchers are not executed. ```typescript onCapturePaste(e: ClipboardEvent) { /* ... */ const html = e.clipboardData?.getData('text/html'); //...