.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt .. role:: underline =============================== 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: EXT: Rich Text Editor - Chooser =============================== Extension Key: **rte\_chooser** Copyright 2000-2002, Philipp Borgmann, 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: 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: Introduction ------------ .. _What-does-it-do: 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: 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 :underline:`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: :underline:`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: Testing ^^^^^^^ Before you install an other RTE, check if the standard RTE will loaded. .. _Configuration: Configuration ------------- At the moment you must edit rte\_chooser.php file. .. _Known-problems: Known problems -------------- none .. _To-Do-list: To-Do list ---------- \- Better configure for the RTE-Configs. \- Better browser check .. _Changelog: 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 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.png .. :align: left .. :border: 0 .. :height: 195 .. :id: Grafik2 .. :name: Grafik2 .. :width: 547 .. |img-2| image:: img-2.png .. :align: left .. :border: 0 .. :height: 393 .. :id: Grafik3 .. :name: Grafik3 .. :width: 600 .. |img-3| image:: img-3.png .. :align: left .. :border: 0 .. :height: 32 .. :id: Graphic1 .. :name: Graphic1 .. :width: 102