Commit 22224d2a authored by bbaer's avatar bbaer
Browse files

output now as string instead of useless object pointer :)

parent a931bc49
......@@ -276,7 +276,8 @@ $(function (n) {
this.canvas.on('mouse:out', function (e) { that.defaultMouseOutEvent(e) });
this.canvas.on('after:render', function(){
this.calcOffset();
$('#fabric-output').val(that.canvas.toJSON());
$('#fabric-output').val(JSON.stringify(that.canvas.toJSON()));
console.log(that.canvas.toJSON());
});
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment