[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: editor.php 2446 2006-02-17 18:59:08Z stingrey $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 6 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // no direct access 15 defined( '_VALID_MOS' ) or die( 'Restricted access' ); 16 17 if (!defined( '_JOS_EDITOR_INCLUDED' )) { 18 global $mosConfig_editor; 19 global $my; 20 21 if ($mosConfig_editor == '') { 22 $mosConfig_editor = 'none'; 23 } 24 25 // Per User Editor selection 26 $params = new mosParameters( $my->params ); 27 $editor = $params->get( 'editor', '' ); 28 if (!$editor) { 29 $editor = $mosConfig_editor; 30 } 31 32 $_MAMBOTS->loadBot( 'editors', $editor, 1 ); 33 34 function initEditor() { 35 global $mainframe, $_MAMBOTS; 36 37 if ($mainframe->get( 'loadEditor' )) { 38 $results = $_MAMBOTS->trigger( 'onInitEditor' ); 39 foreach ($results as $result) { 40 if (trim($result)) { 41 echo $result; 42 } 43 } 44 } 45 } 46 function getEditorContents( $editorArea, $hiddenField ) { 47 global $mainframe, $_MAMBOTS; 48 49 $mainframe->set( 'loadEditor', true ); 50 51 $results = $_MAMBOTS->trigger( 'onGetEditorContents', array( $editorArea, $hiddenField ) ); 52 foreach ($results as $result) { 53 if (trim($result)) { 54 echo $result; 55 } 56 } 57 } 58 // just present a textarea 59 function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) { 60 global $mainframe, $_MAMBOTS, $my; 61 62 // ensure editor-xtd bots are loaded only once 63 if (!defined( '_JOS_EDITORXTD_INCLUDED' )) { 64 define( '_JOS_EDITORXTD_INCLUDED', 1 ); 65 $_MAMBOTS->loadBotGroup( 'editors-xtd' ); 66 } 67 68 $mainframe->set( 'loadEditor', true ); 69 70 $results = $_MAMBOTS->trigger( 'onEditorArea', array( $name, $content, $hiddenField, $width, $height, $col, $row ) ); 71 foreach ($results as $result) { 72 if (trim($result)) { 73 echo $result; 74 } 75 } 76 } 77 define( '_JOS_EDITOR_INCLUDED', 1 ); 78 } 79 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |