Ticket #7315: 7315.patch
| File 7315.patch, 1.5 KB (added by , 15 years ago) |
|---|
-
_source/plugins/dialog/plugin.js
637 637 height : height 638 638 }, this._.editor ); 639 639 640 this.fire( 'resize', 641 { 642 skin : this._.editor.skinName, 643 width : width, 644 height : height 645 }, this._.editor ); 646 640 647 // Update dialog position when dimension get changed in RTL. 641 648 if ( this._.editor.lang.dir == 'rtl' && this._.position ) 642 649 this._.position.x = CKEDITOR.document.getWindow().getViewPaneSize().width - … … 1275 1282 * init: function( editor ) 1276 1283 * { 1277 1284 * editor.addCommand( 'mydialog',new CKEDITOR.dialogCommand( 'mydialog' ) ); 1278 * 1285 * 1279 1286 * if ( editor.contextMenu ) 1280 1287 * { 1281 1288 * editor.addMenuGroup( 'mygroup', 10 ); … … 1290 1297 * return { 'My Dialog' : CKEDITOR.TRISTATE_OFF }; 1291 1298 * }); 1292 1299 * } 1293 * 1300 * 1294 1301 * <strong>CKEDITOR.dialog.add</strong>( 'mydialog', function( api ) 1295 1302 * { 1296 1303 * // CKEDITOR.dialog.definition … … 1329 1336 * alert( "You have entered: " + textareaObj.getValue() ); 1330 1337 * } 1331 1338 * }; 1332 * 1339 * 1333 1340 * return dialogDefinition; 1334 1341 * } ); 1335 1342 * } 1336 1343 * } ); 1337 * 1344 * 1338 1345 * CKEDITOR.replace( 'editor1', { extraPlugins : 'myplugin' } ); 1339 1346 */ 1340 1347 add : function( name, dialogDefinition )
