TinyMce Example
Note about this demo
Because this demo uses IFrames, and createPopupWindow() in the browser, it must be hosted locally, so you either need to (1) run it on this twiki as opposed to your own website, since the JSLoader libraries are all here, or 2, replicate the hierarchy on your webserver.
Usage
// In ONE script block
JSLoader.load("ria","tinymce","2.1.2");
// In a separate SCRIPT block
tinyMCE.init({mode:"textareas"});
The editor...
Known Issues
TinyMCE -- for me anyway -- displays a JS error in Internet Explorer when the containing document has a
base tag inside the HEAD.
I got around that with a hack (default Twiki template puts the BASE tags in there....)
<script>
// hack to detect and remove BASE tags
try{
base = document.getElementsByTagName("base")[0];
baseParent=base.parentNode;
baseParent.removeChild(base);
} catch (e){ baseParent=null;}