R
R
Roman Polyansky2017-02-16 10:52:02
CKEditor
Roman Polyansky, 2017-02-16 10:52:02

CKEditor does not see config.js, what should I do?

Hello!
Such a trouble, CKEditor does not see the config
. the buttons that are removed are still hanging in the editor
Default config:

CKEDITOR.editorConfig = function( config ) {
  // Define changes to default configuration here.
  // For complete reference see:
  // http://docs.ckeditor.com/#!/api/CKEDITOR.config


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

  // The default plugins included in the basic setup define some buttons that
  // are not needed in a basic editor. They are removed here.
  config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript,clipboard,undo';

  // Dialog windows are also simplified.
  config.removeDialogTabs = 'link:advanced';
};

Everything is in one folder (I put it on laravel), it is in the /public/admr/ckedtor/ folder,
everything is in LAN on the open server (all rights are 777 on the machine)
I tried to google, but no one met this :(
CKEditor 4.6

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Polyansky, 2017-02-17
@RinWorld

The problem is in the cache.. I had to completely clear the browser cache so that everything worked after each change

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question