Is there an word wrap that works on editable contents? (not css)
I have an editable div on my landingpage that sends its textContext to a thermal printer which then prints it. I would like to have the exact line wrapping on my div as the thermal printer has, this means I cant use the css word wrap since that doesnt work with exact character count.
There are a bunch of npm packages that have word wrap in them but all of them seem to be word wrapping a static text instead of a editable text by the user.
Does anyone know if such a package exists or how to make it myself?
0 Replies