Interactive text fields with Fabric.js

前端 未结 6 726
梦如初夏
梦如初夏 2021-01-30 17:49

I\'ve been playing with Fabric.js a lot in the last few weeks, but regarding text fields I\'ve only found it possible to set the text on creation.

Is there any possible

6条回答
  •  误落风尘
    2021-01-30 18:05

        text.set({ text: newText }); //Change the text
        canvas.renderAll(); //Update the canvas
    

    That was what I was looking for :) Thanks alot!

提交回复
热议问题