Ticket #7259: 7259.patch

File 7259.patch, 2.5 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/plugins/dialog/dialogDefinition.js

     
    8787 * @example
    8888 */
    8989
     90
    9091/**
     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/**
    91112 * The buttons in the dialog, defined as an array of
    92113 * {@link CKEDITOR.dialog.definition.button} objects.
    93114 * @name CKEDITOR.dialog.definition.prototype.buttons
  • _source/plugins/dialog/plugin.js

     
    747747
    748748
    749749                        // 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 );
    752752
    753753                        // Reset all inputs back to their default value.
    754754                        this.reset();
     
    12751275                         *      init: function( editor )
    12761276                         *      {
    12771277                         *              editor.addCommand( 'mydialog',new CKEDITOR.dialogCommand( 'mydialog' ) );
    1278                          * 
     1278                         *
    12791279                         *              if ( editor.contextMenu )
    12801280                         *              {
    12811281                         *                      editor.addMenuGroup( 'mygroup', 10 );
     
    12901290                         *                              return { 'My Dialog' : CKEDITOR.TRISTATE_OFF };
    12911291                         *                      });
    12921292                         *              }
    1293                          * 
     1293                         *
    12941294                         *              <strong>CKEDITOR.dialog.add</strong>( 'mydialog', function( api )
    12951295                         *              {
    12961296                         *                      // CKEDITOR.dialog.definition
     
    13291329                         *                                      alert( "You have entered: " + textareaObj.getValue() );
    13301330                         *                              }
    13311331                         *                      };
    1332                          * 
     1332                         *
    13331333                         *                      return dialogDefinition;
    13341334                         *              } );
    13351335                         *      }
    13361336                         * } );
    1337                          * 
     1337                         *
    13381338                         * CKEDITOR.replace( 'editor1', { extraPlugins : 'myplugin' } );
    13391339                         */
    13401340                        add : function( name, dialogDefinition )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy