Skip to content

Virtual element support #902

@luin

Description

@luin

Thanks for the great library!

I'd like to integrate this library in Quill but the usage is to scroll a range into view. I think it makes sense to support a virtual element as well in addition to Element. A virtual element is basically an object providing the following methods:

interface VirtualElement {
  getBoundingClientRect(): DOMRect;
  getParentElement(): HTMLElement;
}

I can create a PR if that something you want to support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions