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
commitfd44d539abb06cf86fd8fe76369c056b8f892a26 (patch)
treeff24ac717027dba9e51bd258e0e8ae772143c7aa /lib
parent7af142b658900bcc302f3fab1501cc6c33c69e8b (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) {