Opened 13 years ago

Closed 13 years ago

#8504 closed Bug (invalid)

Remove the 'Advanced' tab from the 'Image' dialog

Reported by: yveszx Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

The folowing code use to work until i upgraded to 3.6.2 We like to hide Advanced/useless tabs from our users

in the config.js the following code causes the dialog to freeze when adding a new link

if (dialogName == 'image') { Remove the 'Advanced' tab from the 'Link' dialog. dialogDefinition.removeContents('advanced'); }

Change History (1)

comment:1 Changed 13 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Please correct me if I'm wrong but when I paste the below code into config.js everything is working as expected.

CKEDITOR.on( 'dialogDefinition', function( ev )
	{		
		var dialogName = ev.data.name;
		var dialogDefinition = ev.data.definition;
		
		if ( dialogName == 'link' || dialogName == 'table' || dialogName == 'tableProperties' || dialogName == 'image')
		{			
			dialogDefinition.removeContents( 'advanced' );			
		}
	});

There is one issue with table height but it is reproted here #8509. Besides that everythisng is ok.

I'm closing the ticket as an invalid for now but if you are still able to reproduce the defect please leave a comment.

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