Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

No Changes In Ckeditor After Configuring Config.js Rate Topic   - - - - -

 
  • pa5ha14
  • Member
  • Members
  • Join Date: 01-Apr 14
  • 17 posts

Posted 30 September 2014 - 09:37 PM #1

I try to add russian online spellchecking to my CKEDITOR.
Found some advices to modify config.js in js/lib/ckeditor
It should work, by adding some strings:

/**
* @license Copyright © 2003-2013, 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 the complete reference:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config

// The toolbar groups arrangement, optimized for two toolbar rows.

config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
];

// Remove some buttons, provided by the standard plugins, which we dont
// need to have in the Standard(s) toolbar.

config.scayt_autoStartup = false;
config.disableNativeSpellChecker = false;
config.removePlugins = 'liststyle,tabletools,scayt,menubutton,contextmenu';



};


But it doesn't work.

 
  • CSCatrer
  • Newbie
  • Trial users
  • Join Date: 07-Dec 14
  • 1 posts

Posted 07 December 2014 - 01:15 PM #2

Your CKEditor's toolbar will not apply because of you need to comment out the hardcoded line in 'lib/tigh/editors/ckeditor.editor.js'.
Please see this manual how to do it: http://doksoft.com/b...-on-cscart.html

 
  • remoteone
  • Member
  • Members
  • Join Date: 06-Oct 09
  • 747 posts

Posted 17 January 2015 - 03:49 PM #3

To remove the menu restrictions , comment out the line in '/js/tygh/editors/ckeditor.editor.js'.
//  toolbar: [['Format','Font','FontSize', 'Bold','Italic','Underline','TextColor','BGColor','-','Link','Image','Table','-','NumberedList','BulletedList','Indent','Outdent','JustifyLeft','JustifyCenter','JustifyRight','-','Source']],

That works fine for the cscart supplied version of ckeditor, but upon installing ckeditor v4.4.6 there are no menu text/images.
Posted Image