EffEPi / fabric.curvedText

Allows you to create curved text - extension to fabric.js
41 stars 41 forks source link

Can't Remove Object #33

Closed creativefull closed 5 years ago

creativefull commented 8 years ago

how to remove curvedText object ?

i use canvas.getActiveObject().remove() in another object is working , but if i use this code in curvedText not working , why ? help me :)

manimalik commented 7 years ago

You can use following instead:

var obj = canvas.getActiveObject(); if(obj) canvas.remove(obj);