Ticket #3717: 3717_3.patch
File 3717_3.patch, 2.2 KB (added by , 14 years ago) |
---|
-
_source/plugins/dialog/plugin.js
1439 1439 magnetDistance = editor.config.dialog_magnetDistance, 1440 1440 margins = skinData[ editor.skinName ].margins || [ 0, 0, 0, 0 ]; 1441 1441 1442 if ( typeof magnetDistance == 'undefined' ) 1443 magnetDistance = 20; 1444 1442 1445 function mouseMoveHandler( evt ) 1443 1446 { 1444 1447 var dialogSize = dialog.getSize(), … … 1662 1665 '<div style="position: ', ( CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed' ), 1663 1666 '; z-index: ', editor.config.baseFloatZIndex, 1664 1667 '; top: 0px; left: 0px; ', 1665 'background-color: ', editor.config.dialog_backgroundCoverColor ,1668 'background-color: ', editor.config.dialog_backgroundCoverColor || 'white', 1666 1669 '" id="cke_dialog_background_cover">' 1667 1670 ]; 1668 1671 … … 1754 1757 }, 0 ); 1755 1758 scrollFunc(); 1756 1759 } 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 1758 1764 element.appendTo( CKEDITOR.document.getBody() ); 1759 1765 }; 1760 1766 … … 2735 2741 /** 2736 2742 * The color of the dialog background cover. It should be a valid CSS color 2737 2743 * string. 2744 * @name CKEDITOR.config.dialog_backgroundCoverColor 2738 2745 * @type String 2739 * @default white2746 * @default 'white' 2740 2747 * @example 2741 2748 * config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; 2742 2749 */ 2743 CKEDITOR.config.dialog_backgroundCoverColor = 'white';2744 2750 2745 2751 /** 2746 2752 * The opacity of the dialog background cover. It should be a number within the 2747 2753 * range [0.0, 1.0]. 2754 * @name CKEDITOR.config.dialog_backgroundCoverOpacity 2748 2755 * @type Number 2749 2756 * @default 0.5 2750 2757 * @example 2751 2758 * config.dialog_backgroundCoverOpacity = 0.7; 2752 2759 */ 2753 CKEDITOR.config.dialog_backgroundCoverOpacity = 0.5;2754 2760 2755 2761 /** 2756 2762 * The distance of magnetic borders used in moving and resizing dialogs, 2757 2763 * measured in pixels. 2764 * @name CKEDITOR.config.dialog_magnetDistance 2758 2765 * @type Number 2759 2766 * @default 20 2760 2767 * @example 2761 2768 * config.dialog_magnetDistance = 30; 2762 2769 */ 2763 CKEDITOR.config.dialog_magnetDistance = 20;