Ticket #5308: 5308_4.patch
File 5308_4.patch, 2.4 KB (added by , 14 years ago) |
---|
-
_source/plugins/filebrowser/plugin.js
174 174 params.langCode = editor.langCode; 175 175 176 176 var url = addQueryString( this.filebrowser.url, params ); 177 editor.popup( url, width, height );177 editor.popup( url, width, height, editor.config.fileBrowserWindowFeatures ); 178 178 } 179 179 180 180 /** … … 479 479 * @example 480 480 * config.filebrowserImageBrowseLinkUrl = '/browser/browse.php'; 481 481 */ 482 483 /** 484 * The "features" to use in the file browser popup window. 485 * @name CKEDITOR.config.filebrowserWindowFeatures 486 * @since 3.4.1 487 * @type String 488 * @default 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes' 489 * @example 490 * config.filebrowserWindowFeatures = 'resizable=yes,scrollbars=no'; 491 */ -
_source/plugins/popup/plugin.js
3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ 5 5 6 CKEDITOR.plugins.add( 'popup' );6 CKEDITOR.plugins.add( 'popup' ); 7 7 8 8 CKEDITOR.tools.extend( CKEDITOR.editor.prototype, 9 9 { … … 13 13 * @param {String} url The url of the external file browser. 14 14 * @param {String} width Popup window width. 15 15 * @param {String} height Popup window height. 16 * @param {String} options Popup window features. 16 17 */ 17 popup : function( url, width, height )18 popup : function( url, width, height, options ) 18 19 { 19 20 width = width || '80%'; 20 21 height = height || '70%'; … … 33 34 34 35 var top = parseInt( ( window.screen.height - height ) / 2, 10 ), 35 36 left = parseInt( ( window.screen.width - width ) / 2, 10 ), 36 options = 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes'+37 options = ( options || 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes' ) + 37 38 ',width=' + width + 38 39 ',height=' + height + 39 40 ',top=' + top + … … 57 58 popupWindow = window.open( url, null, options, true ); 58 59 } 59 60 60 return true 61 return true; 61 62 } 62 63 });