Skip to content

vertical align center support as a props option #258

Open
@ibarapascal

Description

as title

current

we can customize the element's style to enable them vertically aligned at the center, but the initial cursor position would keep at the top as long as the initial content is empty.

enhancement

we can do that via adding a CSS :empty class to set the line-height the same value as the contentEditable's element height to fix that, if we can include such adjustments within our components and expose a boolean option to do so, that would be great

related QA: https://stackoverflow.com/a/71304258/11872246

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions