-
Notifications
You must be signed in to change notification settings - Fork 91
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
Pasting paragraphs sometimes adds unexpected linebreaks #4602
Comments
This seems to come from the |
Indeed, that's the reason for this behaviour. I wonder whether we should use our own implementation of |
This seems to come from the prosemirror stylesheet recommentations ad would also warn in ProseMirror/prosemirror-view@b8b814c, but i think it the original paragraph node doesn't have it we can also drop it here. ProseMirror/prosemirror#981 might give a bit of reasoning for what it is needed |
Fixes: #4602 Signed-off-by: Jonas <[email protected]>
Fixes: #4602 Signed-off-by: Jonas <[email protected]>
Worth to double check against this logic text/src/extensions/Markdown.js Lines 79 to 104 in b57faa0
|
Experimentsreplace the
|
Looks like prosemirror has a |
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]>
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]>
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]>
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]> Signed-off-by: Jonas <[email protected]>
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]> Signed-off-by: Jonas <[email protected]>
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]> Signed-off-by: Jonas <[email protected]>
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]> Signed-off-by: Jonas <[email protected]>
By default html does not display whitespace but text does. Remove newlines when pasting to ensure consistency with the previous display. Keep the newlines when they are also displayed in the source. * Resolves #4602. Signed-off-by: Max <[email protected]> Signed-off-by: Jonas <[email protected]>
Describe the bug
When pasting paragraphs to a document, sometimes unexpected linebreaks are added in between the paragraph. As soon as you do one change in the paragraph, all unexpected linebreaks get deleted at once.
As an example, paste the first 3-4 paragraphs of the wikipedia article about Fairy Tales into a document.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: