-
Notifications
You must be signed in to change notification settings - Fork 845
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
All font settings are lost when you press Enter twice #1969
Comments
This is being worked on, but it is more complex than simply pressing enter twice. To give you an example:
Font and size are treated as inline styles but were not listed in Attribute.inlineKeys. This needs review of Attributes in general. The problem is in PreserveInlineStylesRule which has a complex interaction between inline and block styles. (see issue 1940) |
#1119 could be related. |
Yes, it is related. For this issue, I found that font and size were not listed as inline styles. I have fixed this and added tests to ensure the Attribute class collections of keys is updated if new attributes are added in the future (current proposal to add an attribute for linespacing?) #1940 has reported a problem with maintaining inline styles while entering lists or codeblocks. I think I have fixed this as well. The problem that is still open is editing links. If you click within a link and enter text, the inserted text is inserted as plain text flanked by underscored links. I would think the intent is to edit the visible text for the link rather than splitting the link into 2 parts with plain text? @ellet0 do you recommend submitting what is done ASAP and worry about what is not fixed later? |
I recommend releasing changes that fix a bug and cause another as an alpha or experimental version (pub.dev pre-release). Though we no longer maintain the |
Thanks for your advice. |
Thank you for your contributions. |
Thanks for fixing this! |
Is there an existing issue for this?
Flutter Quill version
9.5.3
Steps to reproduce
Related issue: #1951
Expected results
Keep font family and font size after pressing Enter twice
Actual results
Font family and font size settings are lost pressing Enter twice
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
Logs
Logs
[Paste your logs here]
The text was updated successfully, but these errors were encountered: