Tags:
create new tag
, view all tags

Question

How to easily integrate the FCK Editor for editing pages without using a plugin?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Linux
Web server: Apache 2.2.6
Perl version: 5.8.8
Client OS: Windows XP
Web Browser: Firefox 2.0.0.8/MS IE 6.0
Categories: Documentation

-- CatalinNacu - 22 Oct 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This assumes a standard installation following the Install Docs with no further customization.

Download the latest stable version of FCK Editor and unzip it to a directory called "FCKeditor" in the root of your web server.

Backup the file twiki/templates/edit.pattern.tmpl

Change the following section:

%TMPL:DEF{"templatejavascript"}% %TMPL:END%

ie - you need to add the FCK related stuff.

This will enable the FCK Editor when pressing the standard Edit button.

-- CatalinNacu - 22 Oct 2007

whoops..; here it goes again:

%TMPL:DEF{"templatejavascript"}%<script type="text/javascript" src="%PUBURLPATH%/%TWIKIWEB%/TWikiJavascripts/twiki_edit.js"></script>
    <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
    <script type="text/javascript">
      window.onload = function()
      {
        var oFCKeditor = new FCKeditor( 'text' ) ;
        oFCKeditor.BasePath = "/FCKeditor/" ;
        oFCKeditor.Height = "600" ;
        oFCKeditor.ReplaceTextarea() ;
      }
    </script>
%TMPL:END%

-- CatalinNacu - 22 Oct 2007

..this seems to break the wiki syntax parsing however..

-- CatalinNacu - 22 Oct 2007

Has anyone resolved the problem?

-- ChengZhiHui - 02 Nov 2007

Without using a plugin? Why?

-- CrawfordCurrie - 03 Nov 2007

Sorry, closing this question after more than 30 days of inactivity. Please feel free to re-open if necessary.

-- PeterThoeny - 11 Dec 2007

 
Change status to:
Topic revision: r4 - 2007-12-11 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.