You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I'm trying to do something like this but without beating around the bush with js to control caret, I think with pure css you can do something, or at least try! the closest I've come to such a behavior was added a just to move the caret to the center but without losing the placeholder.
I'm trying to do something like this but without beating around the bush with js to control caret, I think with pure css you can do something, or at least try! the closest I've come to such a behavior was added a just to move the caret to the center but without losing the placeholder.
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 greatrelated QA: https://stackoverflow.com/a/71304258/11872246
The text was updated successfully, but these errors were encountered: