this is my code
$("#textbackground").click(function() {
var obj = canvas.getActiveObject();
![enter image description here][1]
//alert("weight");
if (!obj) return;
obj.setTextBackgroundColor('rgb(0,200,0)');
canvas.renderAll();
});
i have to do set the background color to text only, following like this link , but i am getting background color to text in square, not for text only enter link description here
so how do i set the
obj.setTextBackgroundColor('rgb(0,200,0)');