How to get the edited text from itext in fabricjs -


in code have put itext numbers user.when page loaded itext contain string 'value'.then user can tap , change value.i want value.but can't find method so.

you can itext , text value getting text property of itext object, this; : canvas.getactiveobject().text

also, event after edit text

you use text:editing:exited event, fired after user has made changes on text , exit, this:

canvas.on("text:editing:exited", function (e) {     console.log('updated text:',e.target.text);         console.log("text:editing:exited"); }); 

Comments