-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Writer fields with inline: true
only store first paragraph when multiple are pasted
#4310
Comments
Thanks for the detailed issue description. 👍 The writer field from your example uses the |
Thanks Lukas! |
I agree, the current behavior is quite confusing. Issue SummaryStatus quoIf the user gets the Source of the issueI think the issue is caused by this line:
It just takes the contents of the first Possible solutionWe could instead use |
inline: true
only store first paragraph when multiple are pasted
Isn't that quite negating the purpose of inline then? I'd think you get one line from this, not faked paragraphs via breaks. So not sure that's reducing confusion, rather shifting it. |
You can already enter multiple lines in an |
Thinking about it again: I think the conversion should already happen on paste, not on export. This way the UI won't jump on save/reload. |
@lukasbestle This solution works great. After the paragraphs are converted to |
@afbora Yes, that would be great. Bonus points if you find a way to do the conversion on paste. :) |
Do you mean instant conversion (paragraphs to breaks) on paste, not after save, right? |
If the writer field has inline mode activated, yes. :) |
@lukasbestle I've two solutions (Only one of them needs to be merged). But I couldn't find a way to conversation on paste.
|
Thanks! To be honest I don't have enough knowledge of the writer and ProseMirror to review which of the options is best or if there's another possible implementation. @bastianallgeier? |
✅ |
Description
First off, sorry if someone posted this already, I couldn't find it.
If I paste something from MS Word into the writer field, only the first paragraph gets saved.
Screenshots
kirby_writerfield_issue.mp4
To reproduce
Kirby Version
3.6.6
Your system (please complete the following information)
Tested with:
The text was updated successfully, but these errors were encountered: