From fd44d539abb06cf86fd8fe76369c056b8f892a26 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 16 May 2009 18:09:14 -0400 Subject: Loading an FCKeditor --- lib/js/urweb.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib') 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) { -- cgit v1.2.3