slab / quill

Quill is a modern WYSIWYG editor built for compatibility and extensibility
https://quilljs.com
BSD 3-Clause "New" or "Revised" License
43.65k stars 3.39k forks source link

Bullet point size doesn't change with the font size #2856

Closed cxn-pkovacs closed 6 months ago

cxn-pkovacs commented 4 years ago

Steps for Reproduction

  1. Visit https://quilljs.com/playground/ .
  2. Add the following items to modules.toolbar in the JS:
      [{ 'list': 'ordered'}, { 'list': 'bullet' }],
      [{ 'size': ['small', false, 'large', 'huge'] }],

    .

  3. Wait for the toolbar to be updated with the two items just added.
  4. Create text content as a bullet-pointed list with three items.
  5. Select the entire text and change the font size to Small, Normal, Large and Huge
  6. Observe the size of the bullet-points each time after you changed the font size.

Expected behavior: The size of the bullet-points increases as the font size is increased and vice versa.

Actual behavior: The size of the bullet-points remains the same (small) no matter how large the fonts are.

Platforms:

Version: 1.3.6

cxn-pkovacs commented 4 years ago

Limiting the solution to list-items having their entire text content uniformly sized (similarly to how text objects in Google Draw behave in this respect) significantly decreases the implementation's complexity -- in principle:

When the user applies the size-styling to the entire text, the old size-style(s) can be removed from the text level and the new style can be applied at the list-item level.

ghost commented 4 years ago

Do we have the solution yet?

cxn-pkovacs commented 4 years ago

With current releases, I could solve the issue to some extent (not perfectly) by registering a modified ListItem blot. In the 2.0 branch, the structure of Lists has been modified so as to allow a much more satisfactory solution. (Alas, the last commit in the 2.0 branch was made some time in 2018 which makes me think, it will never be released.)

b-solution commented 2 years ago

Hi there, @cxn-pkovacs @simon-ouyang. I am at-last also stuck on the same problem in 2022. Will you please guide me how to get out of this bug.

ezBeanie commented 1 year ago

Approaching 2023, anyone has a solution to this issue?

haykkh commented 1 year ago

We implemented a(n ugly) fix for this which you can see in https://github.com/quilljs/quill/issues/409#issuecomment-1488435233

quill-bot commented 6 months ago

Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide :pray: