Skip to content
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

🐛 Fix Selection.getBounds() when starting range at end of text node #4010

Merged
merged 1 commit into from
Feb 13, 2024

Commits on Feb 13, 2024

  1. Fix Selection.getBounds() when starting range at end of text node

    At the moment there's a bug when trying to get the bounds of a range
    which starts at the end of a text node at the end of a line.
    
    In this case, the returned bounds span the entire width of the editor,
    which isn't the desired result.
    
    This change fixes the issue by checking if the Quill range starts at the
    end of a leaf. If it does, we try to define the range starting at the
    beginning of the next leaf instead.
    alecgibson authored and luin committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    d88f95e View commit details
    Browse the repository at this point in the history