-
Notifications
You must be signed in to change notification settings - Fork 811
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
Feat: custom leading builder #2146
Conversation
Is the node inline or block level? |
OK, I got the idea. |
I trying to create builders for both types (i'm first trying for inline type, and if it works, then i will make the same for block type). I pass the |
@singerdmx Do you got any idea on how to use |
@EchoEllet how can i get the analizer ignore the deprecated controller param in editor_onfigurations file? |
Add a comment before the statement:
If this isn’t quite what you meant, I might need a few more details. I’m currently tied up with something else and haven’t had a chance to review this PR yet. |
@EchoEllet thank you. There's no problem, when you have time just take a look. |
I'll give up for now because the code is very dependent on certain types that don't allow me to quickly figure out how to correctly implement NodeBuilders. I'll try to implement them later, since I don't have much time for now and it's better to leave this PR as a feature so that the list leaders can be modified without any complications. |
…s passed in the args
Yeah we can leave it and maybe someone else may be able to help |
This is a big change and it is not so easy |
@CatHood0 tried this PR to achieve the bullet list I mentioned in other ticket, works much nicer already 🎉 good work 🙇 My remarks:
width: isOrdered || isCodeBlock
? _numberPointWidth(fontSize, count)
: isUnordered
? fontSize * 2
: null, // can this happen ? It would be nice to have a custom builder for the width (and then for the deeper levels' indentation width - I didn't figure out yet which bit is adding this ) |
Actually, the width of the |
That's the point, the bounding box for whatever container I build with |
made a PR to your PR here: CatHood0#1 I hope this explains my points better 😅 Also it seems to work just fine, other test pass and I'm able to have this aspect of the library now fully customized 🎉 |
@CatHood0 is this ready for merging? |
@singerdmx @CatHood0 I'd be grateful to have my changes also in 🙇 |
#1) * add ability to customize leading point width and leading point indent width * fix one minor discrepancy
@singerdmx this can be merged now- |
@CatHood0 it would be nice if there are some updates to README about this |
Description
A new property has been added that will allow us to configure the leading of the elements in a list without any limitations.
Example of a custom bullet list:
This code:
Will have this effect on the view:
Related Issues
QuillEditor*Point
more customizable #2131Not related issues
These issues are not related but was fixed while creating the feature.
Suggestions
We should stop creating such hardcoded code as it is really getting complicated trying to create default blocks to give users the opportunity to create their own independent components.