Opened 9 years ago

Last modified 9 years ago

#5307 closed Bug

Customizing multi-tab dialog to show only one tab doesn't work — at Version 2

Reported by: Damian Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.3
Component: UI : Dialogs Version: 3.0
Keywords: IBM Confirmed Review+ Cc: Joek

Description (last modified by Garry Yao)

Take the Find dialog as an example. Customize it by hiding the Replace tab and leaving only the Replace tab visible:

replaceTab.hidden=true;
dialogDefinition.dialog.parts.dialog.addClass('cke_single_page'); 

This results in a single Find tab appearing in the dialog, but the tab can be accessed with keyboard and when navigating using arrows, an error occurs and the content of the dialog becomes blank.

Change History (3)

comment:1 Changed 9 years ago by Damian

I neglected to mention that I do not want to completely remove the Replace tab, i.e.

dialogDefinition.removeContents('replace');

comment:2 Changed 9 years ago by Garry Yao

Component: GeneralUI : Dialogs
Description: modified (diff)
Keywords: Confirmed added
Owner: set to Garry Yao
Status: newassigned
Version: 3.0

Changed 9 years ago by Garry Yao

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