--- a/includes/clientside/static/dynano.js Mon Feb 11 14:33:49 2008 -0500
+++ b/includes/clientside/static/dynano.js Tue Feb 12 00:37:46 2008 -0500
@@ -22,6 +22,7 @@
this.switchToMCE = DN_switchToMCE;
this.destroyMCE = DN_destroyMCE;
this.getContent = DN_mceFetchContent;
+ this.setContent = DN_mceSetContent;
}
}
function __DNObjGetHeight(o) {
@@ -148,6 +149,23 @@
}
}
+function DN_mceSetContent(text)
+{
+ if ( this.object.name )
+ {
+ this.object.value = text;
+ if ( tinyMCE.get(this.object.id) )
+ {
+ var editor = tinyMCE.get(this.object.id);
+ editor.setContent(text);
+ }
+ }
+ else
+ {
+ this.object.value = text;
+ }
+}
+
// A basic Wikitext to XHTML converter
function DN_WikitextToXHTML(text)
{