I'm trying to draw a box directly to the C2 canvas from a plugin... how do I do this?
I tried the following... but perhaps I'm missing something:
var c = document.getElementById("c2canvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
It gives me the error: cannot set property "fillstyle" of null
Perhaps I'm going about this the wrong way... what I want to do, is have only one instance of my plugin, but be able to draw images, and other drawings directly to the canvas at any time, so I'm not limited to just one picture on one layout. I hope I'm making sense. The easiest help you could give me I guess, is how can I make that code above work inside a plugin?