STRML / textFit

A jQuery-free component that quickly fits single and multi-line text to the width (and optionally height) of its container.
https://textfit.strml.net
642 stars 122 forks source link

How to force or detect new line by textarea #69

Open Mativve opened 6 months ago

Mativve commented 6 months ago

Hi, I'm trying to solve this problem in my app that using textFit but my every try ended with fail :(

How to force textFit to make new line? For example textFit get text from textarea, user using enter makes new line but textFit don't create new line. Any tips for solve this problem?