r1 - 18 Oct 2007 - 16:54:26 - DovKatzYou are here: TWiki >  JSLoader Web > DemoList > TinyMceDemo

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;}
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback