Opened 6 years ago

Closed 6 years ago

#11670 closed Bug (invalid)

Toolbar definition in global editorConfig does not work

Reported by: Ivan Čentéš Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Hi,

I have troubles with configuring the toolbar. I want to configure it globaly for every editor, so I'm trying to use the CKEDITOR.editorConfig way. I followed the instructions seen here: http://docs.ckeditor.com/#!/guide/dev_toolbar

But no toolbar setting I try in CKEDITOR.editorConfig works. Other settings (uiColor, width, height, ...) do work.

I can configure toolbar using the "instance" settings: CKEDITOR.replace("...", {toolbar: ...});

Is this a bug, or am I doing something wrong? How to configure the toolbar globaly for every editor instance?

Examples (jsfiddle):

  1. localy (working): http://jsfiddle.net/AeGWJ/
  2. globaly (not working): http://jsfiddle.net/KcvUm/

Change History (1)

comment:1 Changed 6 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.3.2

I think it will be best if you just put these changes to ckeditor/config.js file.

Next please get familiar with http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-customConfig.

What you did is in fact invalid. You should rather put that code into file and then point this file in above configuration option. I don't think however that in this case you need custom configuration file so just put your code into config.js and refresh browser cache just in case.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy