2013-08-31, 08:04:02
those lines need semicolons
config.extraPlugins = 'syntaxhighlight';
config.syntaxhighlightLangDefault = 'php';
it is object assignment, not an object array as the other configs are.
and i just realized resize_dir does not have a semicolon, its actually not required, its a huge javascript debate.\
config.extraPlugins = 'syntaxhighlight';
config.syntaxhighlightLangDefault = 'php';
it is object assignment, not an object array as the other configs are.
and i just realized resize_dir does not have a semicolon, its actually not required, its a huge javascript debate.\
Code:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here.
config.resize_dir = 'vertical' // vertical resize
config.toolbarCanCollapse = false; // hide toolbar collapse button
config.dialog_backgroundCoverColor = '#000000';
config.extraPlugins = 'syntaxhighlight';
config.syntaxhighlightLangDefault = 'php';
config.toolbar_advanced =
[['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Table', 'TextColor', 'BGColor', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source'],
'/',
['Styles','Format','Font','FontSize']];
config.toolbar_basic =
[['Bold', 'Italic', 'Underline', 'NumberedList', 'BulletedList', 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock', 'Link', 'Unlink', 'Image', 'RemoveFormat', 'Source']];
};