Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve wrapping behavior - break mid-word #106

Open
vincerubinetti opened this issue Apr 24, 2019 · 0 comments
Open

Improve wrapping behavior - break mid-word #106

vincerubinetti opened this issue Apr 24, 2019 · 0 comments

Comments

@vincerubinetti
Copy link

Related to #95.

If a word is too long to fit on a line, it wont be shown at all. With a custom ellipsis function, you can replace an empty string with ... to at least show there was supposed to be something there. But the expected behavior would be breaking in the middle of the word, and pushing the remainder to the next line (or adding a ... if no more lines are available).

Test ground for word wrapping/splitting. Resize the first box.
http://jsfiddle.net/5krvb8f7/2/

The ideal behavior would be the behavior of <textarea>, or the regular html <div> with word-break: break-word.

I understand that this is not a trivial thing to accomplish, but I do think it's essential. Without it, the plugin is almost useless (at least in my use case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant