summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-16 18:09:14 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-16 18:09:14 -0400
commit48105ce953be28a0858abdb28cff5c2fe443e376 (patch)
treeff24ac717027dba9e51bd258e0e8ae772143c7aa /lib
parent817ce7421f990d3ee5ed75ebdc0560a22b96837f (diff)
Loading an FCKeditor
Diffstat (limited to 'lib')
-rw-r--r--lib/js/urweb.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 04c1cfae..8890c446 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -228,6 +228,18 @@ function addNode(node) {
lastParent().appendChild(node);
}
+function setHTML(html) {
+ var x = document.createElement("span");
+ x.dead = false;
+ x.signal = null;
+ x.sources = null;
+ x.closures = null;
+ x.innerHTML = html;
+ addNode(x);
+ runScripts(x);
+ alert("HTML:\n" + html);
+}
+
var thisScript = null;
function runScripts(node) {