r1 - 18 Oct 2007 - 16:44:36 - DovKatzYou are here: TWiki >  JSLoader Web > DemoList > FckEditorDemo

FCKEditor 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","fckeditor","2.5");

// In a separate SCRIPT block
var oFCKeditor = new FCKeditor( 'text1' ) ;   
// We need to set the base path for   
// oFCKeditor to find its assets   
// in our “version” file, we make sure   
// to define this, so all we need to do   
// here is reference it   
oFCKeditor.BasePath = JSLoader.getEnv("FCKEDITOR_BASE");   
oFCKeditor.Height   = 300 ;   
oFCKeditor.Value    = '';   
oFCKeditor.Create() ;   

The editor...

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