Textbox of Fabric.js does not wrap a long word

前端 未结 3 991
半阙折子戏
半阙折子戏 2020-12-18 01:26

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

3条回答
  •  轮回少年
    2020-12-18 01:54

    For fabric 2.0+ Please see Fabric.js 2.0 breakWords Implementation for an implementation for word wrapping long words without spacing.

提交回复
热议问题