Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14656 closed New Feature (invalid)

toolbar_Full not exposed in editorConfig() as it was in 3.x

Reported by: Shawn A Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version:
Keywords: Cc:

Description

In 3.x you used to be able to modify toolbar_full inside editorconfig as the config.toolbar_Full was exposed.

eg. config.toolbar_Full.push(About?);

Is there anyway to re-implement this, or is the way toolbars are built now make this no longer possible.

Change History (4)

comment:1 Changed 3 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.9

From what I can see something like below works:

config.toolbar_Basic = [
	{ name: 'document', groups: [ 'mode', 'document', 'doctools' ], items: [ 'Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates' ] }			
];
config.toolbar = 'Basic';
config.toolbar_Basic.push( ['About'] );

Please note however this this isn't recommended way of extending toolbar. This is more of a hack.

To learn more about toolbars please see: Please see: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-toolbar and http://docs.ckeditor.com/#!/guide/dev_toolbarconcepts

comment:2 Changed 3 years ago by Shawn A

Yeah that only works on toolbars created in scope, toolbar_Full used to exist in the editorConfig(config) object.

This is specifically about toolbar_Full the default cke toolbar not user toolbars.

comment:3 Changed 3 years ago by Jakub Ś

If you were able to get to the default toolbar, you would probably be able to do the same thing but as I have said before this is more of a hack and in general we don't support modifying toolbar after it was defined.

comment:4 Changed 3 years ago by Shawn A

Any suggestions welcome on how the default toolbar is generated internally so I can maybe provide some legacy support for my users. I tried finding it in the source, but have not had success.

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