1
defwind77
fckeditor in smartsection?
  • 2006/1/11 19:47

  • defwind77

  • Not too shy to talk

  • Posts: 180

  • Since: 2005/11/11


Hi,

can anyone tell me how I can get fckeditor working in smartsection - I've seen a few posts where people say you've got to add 'x' code into 'y' file and that's it - does anyone know how to get it working?

I've installed fckeditor - however I don't know how to use it in modules - when I check the settings of modules (eg smartsection) it only lets me select the default ones (xoopseditor/koivi/tiny editor)

How can I add an editor to this list in each module?

Many thanks!

2
saeed
Re: fckeditor in smartsection?
  • 2006/1/23 20:42

  • saeed

  • Not too shy to talk

  • Posts: 106

  • Since: 2004/9/27


yes! anyone help pls
All about electronics and hardware:
HardWare Freaks!

3
jimbofoxman
Re: fckeditor in smartsection?

anyone?

4
zzzzsg
Re: fckeditor in smartsection?
  • 2006/4/5 18:44

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


I'm also trying to include fckeditor in SmartSection.

So far no luck.
Including fck in modules/smartsection/include/functions.php, and including 'FCKEditor' => 'fck' in xoops_version.php and doing a module update didn't work. Produced a blank page when I clicked on Submit in SmartSection.

gui



in functions.php

case "fck":^M
if( substr( XOOPS_VERSION , 6 , 3 ) > 2.0 ) {^M
if ( is_readable(XOOPS_ROOT_PATH . "/class/fckeditor/formfckeditor.php")) {^M
include_once(XOOPS_ROOT_PATH . "/class/fckeditor/formfckeditor.php");^M
$editor = new XoopsFormFckeditor($caption, $name, $value);^M

}^M
} else {^M
$editor = new XoopsFormEditor($caption, "fckeditor", $editor_configs);^M
}^M
break;^M

in xoops_version.php :

$modversion['config'][$i]['options'] = array('XoopsEditor' => 'default',
'Koivi Editor' => 'koivi',
'TinyEditor' => 'tiny',
'FCKEditor' => 'fck');

5
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.

6
Anonymous
Re: fckeditor in smartsection?
  • 2007/9/1 18:29

  • Anonymous

  • Posts: 0

  • Since:


There are no formfckeditor.php file in this path !!

I'm using fckeditor 2.4.3

Login

Who's Online

245 user(s) are online (154 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

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

Latest GitHub Commits