You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jQuery Terminal is cloning the node if it's jQuery object:
varnode;if(valueinstanceof$.fn.init){// deep clone with events - we clone because remove// from DOM will remove events from original objectnode=value.clone(true,true);}else{// don't clone html nodes because it will not// work for canvas or video tagnode=value;}
And if you created a context of the canvas to draw it will be lost when rendering on the terminal.
Expected behavior
I expect to render canvas as a jQuery object
Actual behavior
You can't draw on canvas if you echo it as a jQuery object, you need to echo DOM Node.
The text was updated successfully, but these errors were encountered:
Issue summary
jQuery Terminal is cloning the node if it's jQuery object:
And if you created a context of the canvas to draw it will be lost when rendering on the terminal.
Expected behavior
I expect to render canvas as a jQuery object
Actual behavior
You can't draw on canvas if you echo it as a jQuery object, you need to echo DOM Node.
The text was updated successfully, but these errors were encountered: