Ticket #4797: 4797_2.patch
File 4797_2.patch, 1.1 KB (added by , 13 years ago) |
---|
-
_source/plugins/dialog/plugin.js
659 659 if ( !( element.getParent() && element.getParent().equals( CKEDITOR.document.getBody() ) ) ) 660 660 element.appendTo( CKEDITOR.document.getBody() ); 661 661 else 662 return;662 element.setStyle( 'display', 'block' ); 663 663 664 664 // FIREFOX BUG: Fix vanishing caret for Firefox 2 or Gecko 1.8. 665 665 if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 ) … … 799 799 { 800 800 this.fire( 'hide', {} ); 801 801 this._.editor.fire( 'dialogHide', this ); 802 803 // Remove the dialog's element from the root document.804 802 var element = this._.element; 805 if ( !element.getParent() ) 806 return; 807 808 element.remove(); 803 element.setStyle( 'display', 'none' ); 809 804 this.parts.dialog.setStyle( 'visibility', 'hidden' ); 810 811 805 // Unregister all access keys associated with this dialog. 812 806 unregisterAccessKey( this ); 813 807