DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: Rich Text Editor - Chooser

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2004-02-26T13:06:10
Author:Philipp Borgmann
Email:philipp.borgmann@gmx.de
Info 3:
Info 4:

EXT: Rich Text Editor - Chooser

Extension Key: rte_chooser

Copyright 2000-2002, Philipp Borgmann, <philipp.borgmann@gmx.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.com

Table of Contents

EXT: Rich Text Editor - Chooser 1

Introduction 1

What does it do? 1

How to install 1

Testing 3

Configuration 3

Known problems 3

To-Do list 3

Changelog 3

Introduction

What does it do?

Normally Typo3 except just the Internet Explorer as an browser that support RTE. But other browser like Mozilla can display RTEs (not the standard RTE in Typo3), too.

With this extension you can install more RTE and this exentsion choose the best extension for your browser (configure able).

How to install

This is only for Typo3 3.6RC1

1. Install and load this extension.

2. We need to remove the browser check and the link to the standard RTE form Typo3-Core and set the path to this extension. --> At the moment Typo3-Core check the browser and link to the standard RTE. We need to remove this, because this extension check the browser and link the best RTE.

Order:

2.1. Unpack the typo3_files.zip

2.2. They are two ways:

2.2.a. If you have Typo3 3.6RC1 then you can replace the files in /t3lib and /typo3/t3lib with the files in the ZIP-File

2.2.b. This is besser but not so easy: Edit the files per hand

2.2.b.1 Edit /t3lib/class.t3lib_tceforms.php and /typo3/t3lib/class.t3lib_tceforms.php (the files are the same)

At line 910: Relace the lines 910 and 911

$RTEdivStyle = $this->RTEdivStyle ....
$rteURL = $this->backPath.$this->RTEpath ....

with this lines:

$localRTEpath = $this->RTEpath;
     if (t3lib_extMgm::isLoaded("rte_chooser")) {
             include_once(t3lib_extMgm::extPath('rte_chooser')."app/rte_chooser.php");
             $rte_chooser = t3lib_div::makeInstance('SC_rte_chooser');
             $localRTEpath = $rte_chooser->getBestRTEpath();
     }
     $RTEdivStyle = $this->RTEdivStyle ? $this->RTEdivStyle : 'position:relative; left:0px; top:0px; height:380px; width:'.$RTEWidth.'px;border:solid 0px;';
     $rteURL = $this->backPath.$localRTEpath.'rte.php?elementId='.$PA['itemFormElName'].'&pid='.$row['pid'].'&typeVal='.rawurlencode($RTEtypeVal).'&bgColor='.rawurlencode($this->colorScheme[0]).'&sC='.rawurlencode($PA['extra']).($this->tceFormsEditor?'&TCEformsEdit=1':'').'&formName='.rawurlencode($this->formName);

So that it looks like this:

img-1

2.2.b.2 Edit /t3lib/ class.t3lib_userauthgroup.php and /typo3/t3lib/ class.t3lib_userauthgroup.php (the files are the same)

At line 332: Replace the complete function isRTE() with this owe:

function isRTE()   {
   global $CLIENT;
     if (
                t3lib_extMgm::isLoaded('rte_chooser') &&
            $this->uc['edit_RTE'] &&
         $GLOBALS['TYPO3_CONF_VARS']['BE']['RTEenabled']
             ) {
                 include_once(t3lib_extMgm::extPath('rte_chooser')."app/rte_chooser.php");
                 $rte_chooser = t3lib_div::makeInstance('SC_rte_chooser');
                   return $rte_chooser->isRTE();
    }
   else if (
           t3lib_extMgm::isLoaded('rte') &&
           $CLIENT['BROWSER']=='msie' &&
              $CLIENT['SYSTEM']=='win' &&
                $CLIENT['VERSION']>=5 &&
                $this->uc['edit_RTE'] &&
         $GLOBALS['TYPO3_CONF_VARS']['BE']['RTEenabled']
             )       {
                   return 1;
   } else {
            return 0;
   }
}

So that it looks like this:

img-2

That's all. Hope it works for you. Test it!!

Testing

Before you install an other RTE, check if the standard RTE will loaded.

Configuration

At the moment you must edit rte_chooser.php file.

Known problems

none

To-Do list

- Better configure for the RTE-Configs.

- Better browser check

Changelog

Add the manual

one change at the manualfix a bug: the extension works now as an local and global extension

img-3 EXT: Rich Text Editor - Chooser - 3