-
Notifications
You must be signed in to change notification settings - Fork 754
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
Custom Block Attribute issue #1881
Comments
@AtlasAutocode could you please take a look if you're able to fix this |
Wow, that looks really good. Line spacing is an important word processing function - have you considered contributing it? |
I considered contribute with some ideas, but i'm developing on them first, in my app, and later i just will post as a feature here. One of them is transforming deltas to pdf but more complex and with capability to add custom widgets. Focusing on my issuei notice of this error when i record the last video: assert(after.isPlain); If your watch the video (minute 0:21), there's a moment where i delete a line, and try to put a new line at that same position, i can't do it. This is related with the insert at line 62. Idk what it means (i working just 1 year and know how works deltas, but rules, and formatting it's difficult to me to resolve this issue)
The only thing that i didn't show, is a function that makes more easy read text to user: double resolveLineHeightEditor() {
if (this == 2.0) return 2.0;
if (this == 1.5) return 1.55;
if (this == 1.15) return 1.30;
if (this == 1.0) return 1.15;
return this;
} |
Is there an existing issue for this?
Flutter Quill version
9.3.13
Steps to reproduce
Write some lines with random text (apply the line-height that you want with the QuillLineHeightButton), go to another line, and then, try to change to another line height. The change won't be applied.
Expected results
I just expect it works as block attribute should be.
Actual results
The issue described in the steps. In certain situations line-height (a block attr) cannot be removed or updated to another. But also, if we use align (i don't test other blocks attrs like header at this moment) attr after use line height to a paragraph, the custom attr will be deleted and just will be applied Align
Code sample
Code sample
Screenshots or Video
Example video of how works and the issue
screen-20240520-011733.mp4
Result delta and json
Logs
Logs
[Paste your logs here]
The text was updated successfully, but these errors were encountered: