| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 lmb_require('limb/wysiwyg/src/template/components/lmbWysiwygComponent.class.php'); 10 11 @define('LIMB_FCKEDITOR_DIR', 'limb/wysiwyg/lib/FCKeditor/'); 12 13 /** 14 * class lmbFCKEditorComponent. 15 * 16 * @package wysiwyg 17 * @version $Id: lmbFCKEditorComponent.class.php 5945 2007-06-06 08:31:43Z pachanga $ 18 */ 19 class lmbFCKEditorComponent extends lmbWysiwygComponent 20 { 21 var $dir = ''; 22 23 function renderContents() 24 { 25 $this->renderEditor(); 26 } 27 28 function renderEditor() 29 { 30 include_once(LIMB_FCKEDITOR_DIR . '/fckeditor.php'); 31 32 $editor = new FCKeditor($this->getAttribute('name')) ; 33 $this->_setEditorParameters($editor); 34 $editor->Value = $this->getValue(); 35 36 $editor->Create(); 37 } 38 39 function _setEditorParameters($editor) 40 { 41 if($this->getIniOption('base_path')) 42 $editor->BasePath = $this->getIniOption('base_path'); 43 else 44 $editor->BasePath = '/FCKEditor/'; 45 46 if($this->getIniOption('Config')) 47 $editor->Config = $this->getIniOption('Config'); 48 49 if($this->getIniOption('ToolbarSet')) 50 $editor->ToolbarSet = $this->getIniOption('ToolbarSet'); 51 52 $editor->Width = $this->getAttribute('width'); 53 $editor->Height = $this->getAttribute('height'); 54 } 55 } 56 57 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Dec 1 03:56:46 2008 | Cross-referenced by PHPXref 0.7 |