User:PleaseStand/userScriptSandbox.js: Difference between revisions

Content deleted Content added
m wrap > wrapAll. wrap copies the nodes we are trying to attach event handlers to.
m still not good enough
Line 95:
$("#sandbox-js-area-placeholder").replaceWith( editor.$jsArea );
$("#sandbox-css-area-placeholder").replaceWith( editor.$cssArea );
$("#sandbox-save-local-text").wrapAll( editor.$saveLocal );
// .wrapAll() does not suffice because it clones the the wrapping element.
$("#sandbox-save-local-text").wrapAll( editor.$saveLocal );
.replaceWith( editor.$saveLocal )
.appendTo( editor.$saveLocal );
// Event handling functions