fabricjs Getting started with fabricjs Hello World


Example

<canvas id="c" width="400" height="400"></canvas>
var canvas = new fabric.Canvas("c");
var text = new fabric.Textbox('Hello world From Fabric JS', {
            width:250,
            cursorColor :"blue",
            top:10,
            left:10
        });
canvas.add(text)

The example creates a text 'Hello world From Fabric JS' using fabricjs. Demo