Opened 13 years ago

Last modified 11 years ago

#7038 confirmed New Feature

Possibility to automatically switch toolbars on a maximize/minimize of ckeditor

Reported by: Paul Veldema Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version: 3.5
Keywords: Cc:


Then a minimalistic toolbar could be shown when the ckeditor is a (small) component of some window and an elaborate toolbar when maximized/full screen.

The advantage would be having as much workspace as possible in a small editor instance where mostly text is typed. And not having to manually select a larger toolbar when clicking 'maximize' when a larger workspace and more toolbar options are required.

Change History (5)

comment:1 Changed 13 years ago by Paul Veldema

When the runtime setToolbar from #7280 works correctly you can make a plugin with the code below to create a plugin.

CKEDITOR.plugins.add( 'toolbarswitch', 
	init: function( editor ) 
		var _initialToolbar = editor.config.toolbar;
			if ( != 'maximize')
	 		if (editor.config.toolbar == _initialToolbar )
	 			editor.setToolbar( CKEDITOR.config.maximizedToolbar );
	 			editor.setToolbar( _initialToolbar );

CKEDITOR.config.maximizedToolbar = 'largetoolbarname';

comment:2 Changed 13 years ago by Paul Veldema

The above plugin now works in combination with the latest patch (the 3rd) in #7080. The patch in #7080 does however have regression: concat a special char in the config no longer works afterward.

If you do not add special chars the code block here is all you need. Simply add it as an external plugin and a patched version of ckeditor and your done :)

comment:3 Changed 13 years ago by Paul Veldema

Above I meant #7280 not #7080 (typo).

comment:4 Changed 12 years ago by Jakub Ś

Status: newconfirmed

The idea of having minimalistic toolbar is great in my opinion.

I'm not only sure if it should be joined with maximize button.
Perhaps a better option would be adding new functionality to show/hide toolbar button.

comment:5 Changed 11 years ago by Paul Veldema

I'm not only sure if it should be joined with maximize button.

As a plug-in it would be optional.

It seems others have been wanting this as well:

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy