How can I provide to user the ability to add or change a text inside a shape e.g. circle.
Let's say I have the following snippet, how to add text when the user clicks on the circle and writes something:
var canvas = new fabric.Canvas('c1');
var circle = new fabric.Circle({radius: 30, fill: '#f55', top: 100, left: 100});
canvas.selectionColor = 'rgba(0,255,0,0.3)';
canvas.selectionBorderColor = 'red';
canvas.selectionLineWidth = 5;
canvas.add(circle);
I found a question about that but the problem is that I want the user to add text in every shape in the canvas.