PDA

View Full Version : HtmlEditor canvas plugin



ddanny
13 Nov 2013, 1:27 AM
I am trying to write a plugin for HtmlEditor that would add an HTML5 canvas element and would draw something inside the canvas.

It is quite straightforward to add the canvas element, but I cannot figure out how I can actually embed some javascript that would do the drawing part.

Is this possible?

tobiu
13 Nov 2013, 3:17 AM
I would extend Ext.Component and add the logic (methods) inside the class.