comparison lib/js/urweb.js @ 812:2fbd1ac2f04b

Loading an FCKeditor
author Adam Chlipala <adamc@hcoop.net>
date Sat, 16 May 2009 18:09:14 -0400
parents 50b4825115f0
children 26e911ee924c
comparison
equal deleted inserted replaced
811:50b4825115f0 812:2fbd1ac2f04b
225 thisScript.parentNode.appendChild(node); 225 thisScript.parentNode.appendChild(node);
226 thisScript.parentNode.removeChild(thisScript); 226 thisScript.parentNode.removeChild(thisScript);
227 } else 227 } else
228 lastParent().appendChild(node); 228 lastParent().appendChild(node);
229 } 229 }
230
231 function setHTML(html) {
232 var x = document.createElement("span");
233 x.dead = false;
234 x.signal = null;
235 x.sources = null;
236 x.closures = null;
237 x.innerHTML = html;
238 addNode(x);
239 runScripts(x);
240 alert("HTML:\n" + html);
241 }
230 242
231 var thisScript = null; 243 var thisScript = null;
232 244
233 function runScripts(node) { 245 function runScripts(node) {
234 var savedScript = thisScript; 246 var savedScript = thisScript;