开发者

How to hyphenate a string/text in a textarea using jQuery?

开发者 https://www.devze.com 2023-03-04 21:50 出处:网络
I am not able to hyphenate strings using jQuery. It seems there is no library avai开发者_开发问答lable. I tried this link but failed. Please help if you know how to hyphenate a string in a textarea ac

I am not able to hyphenate strings using jQuery. It seems there is no library avai开发者_开发问答lable. I tried this link but failed. Please help if you know how to hyphenate a string in a textarea according to a textarea's width using a jQuery plugin.


I think Hypher is what you're looking for:

https://github.com/bramstein/hypher


As of 2016 there is another JavaScript library available that you could use: https://github.com/ytiurin/hyphen

Compared to Hypher, hy-phen is easier to include on your page, since it does not depend on Node.js or jQuery. You simply have to include the JavaScript file for the library and the pattern file for your desired language using a <script> tag.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号