Ticket #7259: 7259.patch
File 7259.patch, 2.5 KB (added by , 14 years ago) |
---|
-
_source/plugins/dialog/dialogDefinition.js
87 87 * @example 88 88 */ 89 89 90 90 91 /** 92 * The initial width of the dialog, in pixels. 93 * @name CKEDITOR.dialog.definition.prototype.width 94 * @field 95 * @type Number 96 * @default @CKEDITOR.dialog.definition.prototype.minWidth 97 * @since 3.6 98 * @example 99 */ 100 101 /** 102 * The initial height of the dialog, in pixels. 103 * @name CKEDITOR.dialog.definition.prototype.height 104 * @field 105 * @type Number 106 * @default @CKEDITOR.dialog.definition.prototype.minHeight 107 * @since 3.6 108 * @example 109 */ 110 111 /** 91 112 * The buttons in the dialog, defined as an array of 92 113 * {@link CKEDITOR.dialog.definition.button} objects. 93 114 * @name CKEDITOR.dialog.definition.prototype.buttons -
_source/plugins/dialog/plugin.js
747 747 748 748 749 749 // First, set the dialog to an appropriate size. 750 this.resize( this._.contentSize && this._.contentSize.width || definition. minWidth,751 this._.contentSize && this._.contentSize.height || definition. minHeight );750 this.resize( this._.contentSize && this._.contentSize.width || definition.width || definition.minWidth, 751 this._.contentSize && this._.contentSize.height || definition.height || definition.minHeight ); 752 752 753 753 // Reset all inputs back to their default value. 754 754 this.reset(); … … 1275 1275 * init: function( editor ) 1276 1276 * { 1277 1277 * editor.addCommand( 'mydialog',new CKEDITOR.dialogCommand( 'mydialog' ) ); 1278 * 1278 * 1279 1279 * if ( editor.contextMenu ) 1280 1280 * { 1281 1281 * editor.addMenuGroup( 'mygroup', 10 ); … … 1290 1290 * return { 'My Dialog' : CKEDITOR.TRISTATE_OFF }; 1291 1291 * }); 1292 1292 * } 1293 * 1293 * 1294 1294 * <strong>CKEDITOR.dialog.add</strong>( 'mydialog', function( api ) 1295 1295 * { 1296 1296 * // CKEDITOR.dialog.definition … … 1329 1329 * alert( "You have entered: " + textareaObj.getValue() ); 1330 1330 * } 1331 1331 * }; 1332 * 1332 * 1333 1333 * return dialogDefinition; 1334 1334 * } ); 1335 1335 * } 1336 1336 * } ); 1337 * 1337 * 1338 1338 * CKEDITOR.replace( 'editor1', { extraPlugins : 'myplugin' } ); 1339 1339 */ 1340 1340 add : function( name, dialogDefinition )