48 lines
1.8 KiB
PHP
48 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* class.fckEditor.php
|
|
*
|
|
* ProcessMaker Open Source Edition
|
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
|
*
|
|
*/
|
|
/*include(PATH_THIRDPARTY."fckeditor/fckeditor.php") ;
|
|
class XmlForm_Field_HTML extends XmlForm_Field
|
|
{
|
|
//'default','office2003','silver'
|
|
var $skin = 'default';
|
|
//'Default','Basic'
|
|
var $toolbarSet = 'Default';
|
|
var $width = '90%';
|
|
var $height = '200' ;
|
|
function render( $value , $owner=NULL )
|
|
{
|
|
$this->FCKeditor = new FCKeditor('form['.$this->name.']') ;
|
|
$this->FCKeditor->BasePath = '/fckeditor/';
|
|
$this->FCKeditor->Config['AutoDetectLanguage'] = false ;
|
|
$this->FCKeditor->Config['DefaultLanguage'] = $this->language ;
|
|
$this->FCKeditor->ToolbarSet = $this->toolbarSet;
|
|
$this->FCKeditor->Config['SkinPath'] = $this->FCKeditor->BasePath . 'editor/skins/' . htmlspecialchars($this->skin) . '/' ;
|
|
$this->FCKeditor->Value = $value;
|
|
$this->FCKeditor->Width = $this->width;
|
|
$this->FCKeditor->Height = $this->height;
|
|
return $this->FCKeditor->CreateHtml();
|
|
}
|
|
}*/
|