Ticket #3717: 3717_3.patch

File 3717_3.patch, 2.2 KB (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/plugins/dialog/plugin.js

     
    14391439                        magnetDistance = editor.config.dialog_magnetDistance,
    14401440                        margins = skinData[ editor.skinName ].margins || [ 0, 0, 0, 0 ];
    14411441
     1442                if ( typeof magnetDistance == 'undefined' )
     1443                        magnetDistance = 20;
     1444
    14421445                function mouseMoveHandler( evt )
    14431446                {
    14441447                        var dialogSize = dialog.getSize(),
     
    16621665                                        '<div style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ),
    16631666                                        '; z-index: ', editor.config.baseFloatZIndex,
    16641667                                        '; top: 0px; left: 0px; ',
    1665                                         'background-color: ', editor.config.dialog_backgroundCoverColor,
     1668                                        'background-color: ', editor.config.dialog_backgroundCoverColor || 'white',
    16661669                                        '" id="cke_dialog_background_cover">'
    16671670                                ];
    16681671
     
    17541757                                }, 0 );
    17551758                        scrollFunc();
    17561759                }
    1757                 element.setOpacity( editor.config.dialog_backgroundCoverOpacity );
     1760               
     1761                var opacity = editor.config.dialog_backgroundCoverOpacity;
     1762                element.setOpacity( typeof opacity != 'undefined' ? opacity : 0.5 );
     1763               
    17581764                element.appendTo( CKEDITOR.document.getBody() );
    17591765        };
    17601766
     
    27352741/**
    27362742 * The color of the dialog background cover. It should be a valid CSS color
    27372743 * string.
     2744 * @name CKEDITOR.config.dialog_backgroundCoverColor
    27382745 * @type String
    2739  * @default white
     2746 * @default 'white'
    27402747 * @example
    27412748 * config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)';
    27422749 */
    2743 CKEDITOR.config.dialog_backgroundCoverColor = 'white';
    27442750
    27452751/**
    27462752 * The opacity of the dialog background cover. It should be a number within the
    27472753 * range [0.0, 1.0].
     2754 * @name CKEDITOR.config.dialog_backgroundCoverOpacity
    27482755 * @type Number
    27492756 * @default 0.5
    27502757 * @example
    27512758 * config.dialog_backgroundCoverOpacity = 0.7;
    27522759 */
    2753 CKEDITOR.config.dialog_backgroundCoverOpacity = 0.5;
    27542760
    27552761/**
    27562762 * The distance of magnetic borders used in moving and resizing dialogs,
    27572763 * measured in pixels.
     2764 * @name CKEDITOR.config.dialog_magnetDistance
    27582765 * @type Number
    27592766 * @default 20
    27602767 * @example
    27612768 * config.dialog_magnetDistance = 30;
    27622769 */
    2763 CKEDITOR.config.dialog_magnetDistance = 20;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy