Link removeContents of upload tab not working
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' );
}
});
Change History (6)
Cc: |
wim.dewijngaert@… added
|
Component: |
General →
UI : Dialogs
|
Description: |
modified (diff)
|
Priority: |
High →
Normal
|
Keywords: |
Confirmed Review? added
|
Owner: |
set to Garry Yao
|
Status: |
new →
assigned
|
Keywords: |
Review+ added; Review? removed
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
'Info' tab page should not assume the pre-existence of 'Upload' page.