Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CKEditor: how to define custom configuration file?
#9
Unfortunately it is not working:

Code:
define('GSEDITORTOOL',"['Source','-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
    '/',
    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    ['TextColor','BGColor','-','Rule','PageBreak'],['NumberedList','BulletedList','-','Outdent','Indent'],
    '/',
    ['Blockquote','-','Smiley','SpecialChar'],['Link','Unlink','Anchor'],
    ['Image','Flash','Table','HorizontalRule','SpecialChar'],
               '/',
    ['Styles','Format','Font','FontSize'],['ShowBlocks']
    ");

# WYSIWYG editor language (default en)
define('GSEDITORLANG', 'de');
# WYSIWYG Editor Options
define('GSEDITOROPTIONS', "
customConfig : '../../../../theme/canvass/wb.js'

");


wb.js in /themes/canvass/...:

Code:
CKEDITOR.editorConfig = function( config )
{
    // Define changes to default configuration here. For example:
    // config.removePlugins = 'elementspath,resize' ; // hide element path and resizer
    config.toolbarCanCollapse = true; // hide toolbar collapse button
    config.enterMode = CKEDITOR.ENTER_P,
    config.skin = 'v2',
      config.bodyId = 'content',
    config.forceSimpleAmpersand = false,
    config.fontSize_defaultLabel = '11px',
    config.font_defaultLabel = 'Verdana',
    config.entities = false,
    config.emailProtection = 'encode',
    config.contentsLanguage = 'de',
    config.toolbarLocation = 'top',
    config.browserContextMenuOnCtrl = false
    };

I get the standard getsimple-skin and the functionalities are not activated.

I read in the documentation:
Quote:CKEDITOR.config.customConfig: The URL path for the custom configuration file to be loaded

so I do not think I need a replace-code in the command, but I even tried with to no avail...
I even tried with absolute URL...

PS: some of the commands here are for testing whether the file is read or not..
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply


Messages In This Thread
CKEditor: how to define custom configuration file? - by Connie - 2011-03-30, 22:01:47



Users browsing this thread: 1 Guest(s)