Ticket #7315: 7315.patch

File 7315.patch, 1.5 KB (added by Alfonso Martínez de Lizarrondo, 15 years ago)

Proposed patch

  • _source/plugins/dialog/plugin.js

     
    637637                                                height : height
    638638                                        }, this._.editor );
    639639
     640                                this.fire( 'resize',
     641                                        {
     642                                                skin : this._.editor.skinName,
     643                                                width : width,
     644                                                height : height
     645                                        }, this._.editor );
     646
    640647                                // Update dialog position when dimension get changed in RTL.
    641648                                if ( this._.editor.lang.dir == 'rtl' && this._.position )
    642649                                        this._.position.x = CKEDITOR.document.getWindow().getViewPaneSize().width -
     
    12751282                         *      init: function( editor )
    12761283                         *      {
    12771284                         *              editor.addCommand( 'mydialog',new CKEDITOR.dialogCommand( 'mydialog' ) );
    1278                          * 
     1285                         *
    12791286                         *              if ( editor.contextMenu )
    12801287                         *              {
    12811288                         *                      editor.addMenuGroup( 'mygroup', 10 );
     
    12901297                         *                              return { 'My Dialog' : CKEDITOR.TRISTATE_OFF };
    12911298                         *                      });
    12921299                         *              }
    1293                          * 
     1300                         *
    12941301                         *              <strong>CKEDITOR.dialog.add</strong>( 'mydialog', function( api )
    12951302                         *              {
    12961303                         *                      // CKEDITOR.dialog.definition
     
    13291336                         *                                      alert( "You have entered: " + textareaObj.getValue() );
    13301337                         *                              }
    13311338                         *                      };
    1332                          * 
     1339                         *
    13331340                         *                      return dialogDefinition;
    13341341                         *              } );
    13351342                         *      }
    13361343                         * } );
    1337                          * 
     1344                         *
    13381345                         * CKEDITOR.replace( 'editor1', { extraPlugins : 'myplugin' } );
    13391346                         */
    13401347                        add : function( name, dialogDefinition )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy