Ticket #4401 (closed Bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Link removeContents of upload tab not working

Reported by: wimpie3 Owned by: garry.yao
Priority: Normal Milestone: CKEditor 3.1
Component: UI : Dialogs Version: 3.0
Keywords: Confirmed Review+ Cc: wim.dewijngaert@…

Description (last modified by fredck) (diff)

Whe using the function below, the LINK dialog isn't shown anymore (javascript error). Comment out the line "dialogDefinition.removeContents( 'upload' );" and everything works again.

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

Attachments

4401.patch (635 bytes) - added by garry.yao 5 years ago.

Change History

comment:1 Changed 5 years ago by wimpie3

  • Cc wim.dewijngaert@… added

comment:2 Changed 5 years ago by fredck

  • Priority changed from High to Normal
  • Component changed from General to UI : Dialogs
  • Description modified (diff)

Changed 5 years ago by garry.yao

comment:3 Changed 5 years ago by garry.yao

  • Keywords Confirmed Review? added
  • Status changed from new to assigned
  • Owner set to garry.yao

'Info' tab page should not assume the pre-existence of 'Upload' page.

comment:4 Changed 5 years ago by fredck

  • Keywords Review+ added; Review? removed

comment:5 Changed 5 years ago by garry.yao

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed with [4443].

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