1
bumciach
CKeditor and custom configs
  • 2010/8/25 18:12

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


How add custom configuration to CKeditor?
FCKeditor had fckeditor.config.js file in /xoopseditor/fckeditor/module which could be copied to module folder and applied specific options.

2
bumciach
Re: CKeditor and custom configs
  • 2010/8/25 21:25

  • bumciach

  • Not too shy to talk

  • Posts: 153

  • Since: 2007/6/25


OK. I analyzed code xoopseditor deeper. This directory is to upload the configuration files, not from this directory (what it was like in the old FCKeditor).

But it not work. There are some bugs in /xoopseditor/ckeditor/ckeditor.php:

First. Path to '/xoopseditor/ckeditor/module' is invalid.
Second. Argument for file_exists has to be PATH not URL.

Lines 63-64 should look like
if ( file_existsXOOPS_ROOT_PATH $this->rootPath '/module/config.'.$dirname.'.js' ) )
                    
$GLOBALS['xoTheme']->addScriptXOOPS_URL $this->rootPath '/module/config.'.$dirname.'.js' );


and lines 80-81
if ( file_existsXOOPS_ROOT_PATH $this->rootPath '/module/config.'.$dirname.'.js' ) ) 
                    
$ret .= '<script src="' XOOPS_URL $this->rootPath '/module/config.'.$dirname.'.js' '" type="text/javascript"></script>';


EDIT: I add this to BugTracker.

Login

Who's Online

174 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

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

Latest GitHub Commits