⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

CKEDITOR Basic Toolbar



dontako

dontako
  • profile picture
  • Member

Posted 31 October 2012 - 13:32 PM

I can not configure the toolbar in basic mode, I followed the CKEditor documentation, but still without success. Someone show me clearly how to change this? I tried almost everything and I'm desperate :(

dontako

dontako
  • profile picture
  • Member

Posted 31 October 2012 - 16:37 PM

This is my config.js file

/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
//config.uiColor = '#AADC6E';
config.removePlugins = 'elementspath,enterkey,entities,forms,pastefromword,htmldataprocessor,specialchar,horizontalrule,wsc' ;
CKEDITOR.config.toolbar = [
['Styles','Format','Font','FontSize'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'],
'/',
['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Image','Table','-','Link','Flash','Smiley','TextColor','BGColor','Source']
] ;
};


but nothing happens ... If uncommented the line [b]//config.uiColor = '# AADC6E';[/b] successfully change the color, but not so with the toolbar

noskov.biz

noskov.biz
  • profile picture
  • Member

Posted 31 October 2012 - 18:18 PM

Hi, dontako!
Please, change the line

CKEDITOR.config.toolbar = [


into this

config.toolbar_Full = [

or

config.toolbar_Basic = [

dontako

dontako
  • profile picture
  • Member

Posted 31 October 2012 - 18:37 PM

Thank You !! Works great :D

CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
//config.uiColor = '#AADC6E';
config.removePlugins = 'elementspath,enterkey,entities,forms,pastefromword,htmldataprocessor,specialchar,horizontalrule,wsc' ;
config.toolbar_Full = [
['Styles','Format','Font','FontSize'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'],
'/',
['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Image','Table','-','Link','Flash','Smiley','TextColor','BGColor','Source']
] ;

};

noskov.biz

noskov.biz
  • profile picture
  • Member

Posted 31 October 2012 - 18:40 PM

You are welcome!

avambro

avambro
  • profile picture
  • Member

Posted 14 May 2013 - 00:45 AM

thanks , both !