Ticket #5308: 5308_4.patch

File 5308_4.patch, 2.4 KB (added by Sa'ar Zac Elias, 14 years ago)
  • _source/plugins/filebrowser/plugin.js

     
    174174                        params.langCode = editor.langCode;
    175175
    176176                var url = addQueryString( this.filebrowser.url, params );
    177                 editor.popup( url, width, height );
     177                editor.popup( url, width, height, editor.config.fileBrowserWindowFeatures );
    178178        }
    179179
    180180        /**
     
    479479 * @example
    480480 * config.filebrowserImageBrowseLinkUrl = '/browser/browse.php';
    481481 */
     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

     
    33For licensing, see LICENSE.html or http://ckeditor.com/license
    44*/
    55
    6 CKEDITOR.plugins.add( 'popup');
     6CKEDITOR.plugins.add( 'popup' );
    77
    88CKEDITOR.tools.extend( CKEDITOR.editor.prototype,
    99{
     
    1313         * @param {String} url The url of the external file browser.
    1414         * @param {String} width Popup window width.
    1515         * @param {String} height Popup window height.
     16         * @param {String} options Popup window features.
    1617         */
    17         popup : function( url, width, height )
     18        popup : function( url, width, height, options )
    1819        {
    1920                width = width || '80%';
    2021                height = height || '70%';
     
    3334
    3435                var top = parseInt( ( window.screen.height - height ) / 2, 10 ),
    3536                        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' ) +
    3738                        ',width='  + width +
    3839                        ',height=' + height +
    3940                        ',top='  + top +
     
    5758                        popupWindow = window.open( url, null, options, true );
    5859                }
    5960
    60                 return true ;
     61                return true;
    6162        }
    6263});
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy