1
AlejandroMal
Re: fckeditor in smartsection?

This seems to be working:
case 'fck' :
    if( 
substrXOOPS_VERSION ) > 2.0 ) {
        if ( 
is_readable(XOOPS_ROOT_PATH "/class/xoopseditor/fckeditor/formfckeditor.php"))    {
            include_once(
XOOPS_ROOT_PATH "/class/xoopseditor/fckeditor/formfckeditor.php");
            
$editor = new XoopsFormFckeditor( array('caption' =>$caption'name'=>$name'value'=>$value'width' =>'600px''height'=>'400px') );
        } else {
            if (
$dhtml) {
                
$editor = new XoopsFormDhtmlTextArea($caption$name$value2060);
            } else {
                
$editor = new XoopsFormTextArea($caption$name$value760);
            }
        }
    } else {
        if ( 
is_readable(XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php"))    {
            include_once(
XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php");
            
$editor = new XoopsFormWysiwygTextArea($caption$name$value'100%''400px');
        } else {
            if (
$dhtml) {
                
$editor = new XoopsFormDhtmlTextArea($caption$name$value2060);
            } else {
                
$editor = new XoopsFormTextArea($caption$name$value760);
            }
        }
    }
    break;


I also had to change line 58 from fckeditor.php from $HtmlValue = htmlspecialchars( $this->Value ) ; to $HtmlValue = "{$this->Value}" ;

Path to FCKEditor: class/xoopseditor/fckeditor/

Hope it helps.




TopTop



Login

Who's Online

187 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 187


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits