New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An extra P is inserted between two lines if there is sufficient whitespace #1379
Comments
Yeah, I encounted the same problem; using quill 1.2.3 . Seems like (at least in this example) the cause is -- UPDATE -- On our app we are having Our hack fix for now:
|
You can now use a new config in 1.3.0 |
@jhchen adding the modules: {
clipboard: {
matchVisual: false
},
}
|
Notes: * Considering Quill as a replacement for Trix, because of a desire to have more semantically-correct markup as the final output. * Quill is nice, but has its own set of issues. Namely, it inserts `<p><br></p>` tags. * The `matchVisual` [workaround](quilljs/quill#1379) has since been removed from Quill. * We _could_ strip `<p><br></p>` from the HTML before rendering, but I worry that storing those tags in the DB would make it harder to transition away from Quill down the road.
Notes: * Considering Quill as a replacement for Trix, because of a desire to have more semantically-correct markup as the final output. * Quill is nice, but has its own set of issues. Namely, it inserts `<p><br></p>` tags. * The `matchVisual` [workaround](quilljs/quill#1379) has since been removed from Quill. * We _could_ strip `<p><br></p>` from the HTML before rendering, but I worry that storing those tags in the DB would make it harder to transition away from Quill down the road.
Notes: * Considering Quill as a replacement for Trix, because of a desire to have more semantically-correct markup as the final output. * Quill is nice, but has its own set of issues. Namely, it inserts `<p><br></p>` tags. * The `matchVisual` [workaround](quilljs/quill#1379) has since been removed from Quill. * We _could_ strip `<p><br></p>` from the HTML before rendering, but I worry that storing those tags in the DB would make it harder to transition away from Quill down the road.
Notes: * Considering Quill as a replacement for Trix, because of [a desire to have more semantically-correct markup](#53) as the final output. * Quill is nice, but has its own set of issues. Namely, it inserts `<p><br></p>` tags. * The `matchVisual` [workaround](quilljs/quill#1379) has since been removed from Quill. * We _could_ strip `<p><br></p>` from the HTML before rendering, but I worry that storing those tags in the DB would make it harder to transition away from Quill down the road.
Notes: * Considering Quill as a replacement for Trix, because of [a desire to have more semantically-correct markup](#53) as the final output. * Quill is nice, but has its own set of issues. Namely, it inserts `<p><br></p>` tags. * The `matchVisual` [workaround](quilljs/quill#1379) has since been removed from Quill. * We _could_ strip `<p><br></p>` from the HTML before rendering, but I worry that storing those tags in the DB would make it harder to transition away from Quill down the road.
For me,
|
This helped me only after when I was migrate from react-quill 2.0.0-beta.4 to 2.0.0. Thanks!! |
Damn you saved my day! Thanks for million times! |
When initializing the Quill editor with existing markup, if there is sufficient whitespace between two lines (e.g. a P and BLOCKQUOTE), Quill inserts an extra P between them.
Also, it appears to only happen when the preceding line wraps.
It was mentioned in my previous, semi-related ticket (#1341) that deltas should be used and that it may be necessary to play with clipboard matchers to affect how Quill is initializing data. Could that be elaborated on insofar as how it might render this (possible) bug a nonissue?
Steps for Reproduction
Expected behavior:
The paragraph and blockquote are rendered as-is, with no additional lines injected between them, regardless of CSS styling.
Actual behavior:
There is an extra, empty paragraph inserted between the P and BLOCKQUOTE tags.
Platforms:
Chrome 57, Mac OS Sierra, Latest stable Quill (1.2.2)
Version:
1.2.2
The text was updated successfully, but these errors were encountered: