@@ -7,13 +7,13 @@ CKEDITOR.plugins.add('uploadcare', {
77
88 UPLOADCARE_CROP = ! editor . config . USE_PHP ;
99 UPLOADCARE_AUTOSTORE = ! editor . config . USE_PHP ;
10- CKEDITOR . scriptLoader . load ( 'https://ucarecdn.com/widget/0.11.2 /uploadcare/uploadcare-0.11.2 .min.js' ) ;
10+ CKEDITOR . scriptLoader . load ( 'https://ucarecdn.com/widget/0.13.3 /uploadcare/uploadcare-0.13.3 .min.js' ) ;
1111
1212 editor . addCommand ( 'uploadcareDialog' , new CKEDITOR . dialogCommand ( 'uploadcareDialog' ) ) ;
1313
1414 editor . addCommand ( 'showUploadcareDialog' , {
15- allowedContent : 'img' ,
16- requiredContent : 'img' ,
15+ allowedContent : 'img' ,
16+ requiredContent : 'img' ,
1717 exec : function ( ) {
1818 var dialog = uploadcare . openDialog ( ) . done ( function ( file ) {
1919 file . done ( function ( fileInfo ) {
@@ -39,8 +39,8 @@ CKEDITOR.plugins.add('uploadcare', {
3939 toolbar : 'insert' ,
4040 command : 'showUploadcareDialog' ,
4141 icon : this . path + 'images/logo.png' ,
42- allowedContent : 'img[alt,dir,id,lang,longdesc,!src,title]{*}(*)' ,
43- requiredContent : 'img[alt,src]'
42+ allowedContent : 'img[alt,dir,id,lang,longdesc,!src,title]{*}(*)' ,
43+ requiredContent : 'img[alt,src]'
4444 } ) ;
4545
4646 CKEDITOR . dialog . add ( 'uploadcareDialog' , function ( ) {
@@ -51,11 +51,11 @@ CKEDITOR.plugins.add('uploadcare', {
5151 onShow : function ( ) {
5252 document . getElementById ( this . getButton ( 'ok' ) . domId ) . style . display = 'none' ;
5353 } ,
54- contents : [ {
54+ contents : [ {
5555 id : 'iframe' ,
5656 label : 'Uploadcare' ,
5757 expand : false ,
58- elements : [ {
58+ elements : [ {
5959 type : 'iframe' ,
6060 src : me . path + 'dialog.php?file_id=' + _file_id ,
6161 width : '800' ,
@@ -66,8 +66,8 @@ CKEDITOR.plugins.add('uploadcare', {
6666 iframeWindow . document . getElementById ( 'editor_name' ) . value = editor . name ;
6767 }
6868 }
69- } ]
70- } ]
69+ } ]
70+ } ]
7171 } ;
7272 } ) ;
7373 }
0 commit comments