Ticket #4779: 4779.patch
File 4779.patch, 2.6 KB (added by , 14 years ago) |
---|
-
_source/plugins/resize/plugin.js
9 9 { 10 10 var config = editor.config; 11 11 12 if ( config.resize_enabled ) 12 ( config.resize_maxWidth == undefined ) && ( config.resize_maxWidth = 3000 ); 13 ( config.resize_maxHeight == undefined ) && ( config.resize_maxHeight = 3000 ); 14 15 if ( config.resize_enabled !== false ) 13 16 { 14 17 var container = null; 15 18 var origin, startSize; … … 45 48 startSize = { width : container.$.offsetWidth || 0, height : container.$.offsetHeight || 0 }; 46 49 origin = { x : $event.screenX, y : $event.screenY }; 47 50 51 ( config.resize_minWidth == undefined ) && ( config.resize_minWidth = Math.floor( .5 * startSize.width ) ); 52 ( config.resize_minHeight == undefined ) && ( config.resize_minHeight = Math.floor( .5 * startSize.height ) ); 53 48 54 CKEDITOR.document.on( 'mousemove', dragHandler ); 49 55 CKEDITOR.document.on( 'mouseup', dragEndHandler ); 50 56 … … 73 79 74 80 /** 75 81 * The minimum editor width, in pixels, when resizing it with the resize handle. 82 * @name CKEDITOR.config.resize_minWidth 76 83 * @type Number 77 * @default 75084 * @default 1/2 of the editor's start width size. 78 85 * @example 79 86 * config.resize_minWidth = 500; 80 87 */ 81 CKEDITOR.config.resize_minWidth = 750;82 88 83 89 /** 84 90 * The minimum editor height, in pixels, when resizing it with the resize handle. 91 * @name CKEDITOR.config.resize_minHeight 85 92 * @type Number 86 * @default 25093 * @default 1/2 of the editor's start height size. 87 94 * @example 88 95 * config.resize_minHeight = 600; 89 96 */ 90 CKEDITOR.config.resize_minHeight = 250;91 97 92 98 /** 93 99 * The maximum editor width, in pixels, when resizing it with the resize handle. 100 * @name CKEDITOR.config.resize_maxWidth 94 101 * @type Number 95 102 * @default 3000 96 103 * @example 97 104 * config.resize_maxWidth = 750; 98 105 */ 99 CKEDITOR.config.resize_maxWidth = 3000;100 106 101 107 /** 102 108 * The maximum editor height, in pixels, when resizing it with the resize handle. 109 * @name CKEDITOR.config.resize_maxHeight 103 110 * @type Number 104 111 * @default 3000 105 112 * @example 106 113 * config.resize_maxHeight = 600; 107 114 */ 108 CKEDITOR.config.resize_maxHeight = 3000;109 115 110 116 /** 111 117 * Whether to enable the resizing feature. If disabed the resize handler will not be visible. 118 * @name CKEDITOR.config.resize_enabled 112 119 * @type Boolean 113 120 * @default true 114 121 * @example 115 122 * config.resize_enabled = false; 116 123 */ 117 CKEDITOR.config.resize_enabled = true;