Fabric js textbox wrap a long word

无人久伴 提交于 2019-12-23 14:21:54

问题


I am using a customized textbox which should maintain the same width for a textbox while splitting a long word into a new line (I have modified the solution initially proposed by one of the library's maintainers). You can find the code in the following link. The _wrapLine function is overridden.

https://jsfiddle.net/njofce/0qfb3snm/

The problem is, when the word is too long, it splits into lines, but the cursor is not correctly positioned.

Any ideas to fix this?

Thanks in advance

来源:https://stackoverflow.com/questions/50776686/fabric-js-textbox-wrap-a-long-word

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!