I am using the Textbox
of Fabric.js
. I have given a fixed width. But if a user types a long word without any space that exceeds the given width of textbox, it does not wrap.
Any solution?
I am using the Textbox
of Fabric.js
. I have given a fixed width. But if a user types a long word without any space that exceeds the given width of textbox, it does not wrap.
Any solution?
Yes there is a solution that you may like or not to implement word breaking:
override the fabric default function for line breaking:
Usage: