Quill: Bug when pasting html to the editor

Created on 26 Oct 2018  路  2Comments  路  Source: quilljs/quill

When pasting html through "dangerouslyPasteHTML" method of clipboard editor displays unexpected line breaks.

Steps for Reproduction

Expected behavior:
Editor HTML should be equal to pasted HTML.

Actual behavior:
Editor adds extra line breaks into pasted HTML.

Platforms:

ProductName:    Mac OS X
ProductVersion: 10.11.6
BuildVersion:   15G18013
Chrome 69.0.3497.100
Firefox 62.0.3
Safari 11.0.2 (11604.4.7.1.6)

Version: 1.3.6

Most helpful comment

This is not a bug, but a confusing feature.
matchVisual: false option makes it work as expected.
Fixed example

All 2 comments

This is not a bug, but a confusing feature.
matchVisual: false option makes it work as expected.
Fixed example

Oh, thank you @DmitrySkripkin.
Thank you for your feedback, this option is helped a lot.

Was this page helpful?
0 / 5 - 0 ratings