In this jsfiddle I have a Fabric (version 1.x) Textbox that has a red border when it's selected and a blue border when the text is editable. What I need is a border when the TextBox is not selected. How to achieve that?
HTML
<canvas id="c" width="300" height="300"></canvas>
Javascript
var canvas = new fabric.Canvas('c');
var text = new fabric.Textbox("Some Text", {
left: 50,
top: 50,
width: 100,
fontSize: 12,
fontFamily: 'Arial',
backgroundColor: 'yellow',
borderColor: 'red',
editingBorderColor: 'blue',
padding: 2
});
canvas.add(text);