2825 | | CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( dialogDefinitions ), function() |
2826 | | { |
2827 | | // In case of plugin error, mark it as loading failed. |
2828 | | if ( typeof CKEDITOR.dialog._.dialogDefinitions[ dialogName ] != 'function' ) |
2829 | | CKEDITOR.dialog._.dialogDefinitions[ dialogName ] = 'failed'; |
2830 | | me.openDialog( dialogName, callback ); |
2831 | | body.setStyle( 'cursor', cursor ); |
2832 | | } ); |
| 2823 | |
| 2824 | function onDialogFileLoaded( success ) |
| 2825 | { |
| 2826 | var dialogDefinition = CKEDITOR.dialog._.dialogDefinitions[ dialogName ], |
| 2827 | skin = me.skin.dialog; |
| 2828 | |
| 2829 | // Check if both skin part and definition is loaded. |
| 2830 | if ( !skin._isLoaded || typeof success == 'undefined' ) |
| 2831 | return; |
| 2832 | |
| 2833 | // In case of plugin error, mark it as loading failed. |
| 2834 | if ( typeof dialogDefinition != 'function' ) |
| 2835 | CKEDITOR.dialog._.dialogDefinitions[ dialogName ] = 'failed'; |
| 2836 | |
| 2837 | me.openDialog( dialogName, callback ); |
| 2838 | body.setStyle( 'cursor', cursor ); |
| 2839 | } |