Reputation: 1080
This is a tshirt design application based on fabric js. The problem is the text insert and edit works fine. when we add an image and then we add a text while the image is selected the text is not visible (probably size 0). But after couple of font change it works fine.
Upvotes: 0
Views: 499
Reputation: 1426
I have gone through your code and i found that once if you are adding any art or picture and you select it on canvas, font color is changing to white, so while setting 'fcolor' property on object:selected event, you need to first check if selected object is of type 'text' or not, if it is of type 'text' than and only than you have to set 'fcolor' property
Upvotes: 1