@ckeditor/ckeditor5-adapter-ckfinder
Advanced tools
Comparing version 10.0.4 to 11.0.0
Changelog | ||
========= | ||
## [11.0.0](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v10.0.4...v11.0.0) (2019-02-28) | ||
### Other changes | ||
* Updated translations. ([0e55853](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/0e55853)) ([818eeae](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/818eeae)) ([707fa21](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/commit/707fa21)) | ||
### BREAKING CHANGES | ||
* Upgraded minimal versions of Node to `8.0.0` and npm to `5.7.1`. See: [ckeditor/ckeditor5#1507](https://github.com/ckeditor/ckeditor5/issues/1507). ([612ea3c](https://github.com/ckeditor/ckeditor5-cloud-services/commit/612ea3c)) | ||
## [10.0.4](https://github.com/ckeditor/ckeditor5-adapter-ckfinder/compare/v10.0.3...v10.0.4) (2018-12-05) | ||
@@ -5,0 +16,0 @@ |
@@ -5,3 +5,3 @@ Software License Agreement | ||
**CKFinder adapter for CKEditor 5** – https://github.com/ckeditor/ckeditor5-adapter-ckfinder <br> | ||
Copyright (c) 2003-2018, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. | ||
Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. | ||
@@ -8,0 +8,0 @@ Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). |
{ | ||
"name": "@ckeditor/ckeditor5-adapter-ckfinder", | ||
"version": "10.0.4", | ||
"version": "11.0.0", | ||
"description": "CKFinder adapter for CKEditor 5.", | ||
@@ -13,28 +13,28 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^11.1.0", | ||
"@ckeditor/ckeditor5-upload": "^10.0.4" | ||
"@ckeditor/ckeditor5-core": "^12.0.0", | ||
"@ckeditor/ckeditor5-upload": "^11.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^10.1.0", | ||
"@ckeditor/ckeditor5-clipboard": "^10.0.4", | ||
"@ckeditor/ckeditor5-editor-classic": "^11.0.2", | ||
"@ckeditor/ckeditor5-enter": "^10.1.3", | ||
"@ckeditor/ckeditor5-heading": "^10.1.1", | ||
"@ckeditor/ckeditor5-image": "^12.0.0", | ||
"@ckeditor/ckeditor5-list": "^11.0.3", | ||
"@ckeditor/ckeditor5-paragraph": "^10.0.4", | ||
"@ckeditor/ckeditor5-typing": "^11.0.2", | ||
"@ckeditor/ckeditor5-undo": "^10.0.4", | ||
"@ckeditor/ckeditor5-basic-styles": "^11.0.0", | ||
"@ckeditor/ckeditor5-clipboard": "^11.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^12.0.0", | ||
"@ckeditor/ckeditor5-enter": "^11.0.0", | ||
"@ckeditor/ckeditor5-heading": "^11.0.0", | ||
"@ckeditor/ckeditor5-image": "^13.0.0", | ||
"@ckeditor/ckeditor5-list": "^12.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^11.0.0", | ||
"@ckeditor/ckeditor5-typing": "^12.0.0", | ||
"@ckeditor/ckeditor5-undo": "^11.0.0", | ||
"eslint": "^5.5.0", | ||
"eslint-config-ckeditor5": "^1.0.7", | ||
"husky": "^0.14.3", | ||
"eslint-config-ckeditor5": "^1.0.11", | ||
"husky": "^1.3.1", | ||
"lint-staged": "^7.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=6.9.0", | ||
"npm": ">=3.0.0" | ||
"node": ">=8.0.0", | ||
"npm": ">=5.7.1" | ||
}, | ||
"author": "CKSource (http://cksource.com/)", | ||
"license": "GPL-2.0-or-later", | ||
"homepage": "https://ckeditor.com", | ||
"homepage": "https://ckeditor.com/ckeditor-5", | ||
"bugs": "https://github.com/ckeditor/ckeditor5-adapter-ckfinder/issues", | ||
@@ -51,4 +51,3 @@ "repository": { | ||
"scripts": { | ||
"lint": "eslint --quiet '**/*.js'", | ||
"precommit": "lint-staged" | ||
"lint": "eslint --quiet '**/*.js'" | ||
}, | ||
@@ -63,3 +62,8 @@ "lint-staged": { | ||
"packages/**" | ||
] | ||
], | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
} |
@@ -19,3 +19,3 @@ CKFinder adapter for CKEditor 5 | ||
Check out the {@link features/image-upload comprehensive "Image upload" guide} to learn about other ways to upload images into CKEditor 5. | ||
Check out the {@link features/image-upload/image-upload comprehensive "Image upload overview"} to learn about other ways to upload images into CKEditor 5. | ||
@@ -22,0 +22,0 @@ ## License |
/** | ||
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -19,7 +19,7 @@ */ | ||
* | ||
* See the {@glink features/ckfinder "CKFinder integration" guide} to learn how to configure | ||
* See the {@glink features/image-upload/ckfinder "CKFinder file manager integration" guide} to learn how to configure | ||
* and use this feature as well as find out more about the full integration with the file manager | ||
* provided by the {@link module:ckfinder/ckfinder~CKFinder} plugin. | ||
* | ||
* Check out the {@glink features/image-upload comprehensive "Image upload" guide} to learn about | ||
* Check out the {@glink features/image-upload/image-upload comprehensive "Image upload overview"} to learn about | ||
* other ways to upload images into CKEditor 5. | ||
@@ -100,9 +100,11 @@ * | ||
* @see module:upload/filerepository~UploadAdapter#upload | ||
* @returns {Promise} | ||
* @returns {Promise.<Object>} | ||
*/ | ||
upload() { | ||
return new Promise( ( resolve, reject ) => { | ||
this._initRequest(); | ||
this._initListeners( resolve, reject ); | ||
this._sendRequest(); | ||
return this.loader.file.then( file => { | ||
return new Promise( ( resolve, reject ) => { | ||
this._initRequest(); | ||
this._initListeners( resolve, reject, file ); | ||
this._sendRequest( file ); | ||
} ); | ||
} ); | ||
@@ -115,3 +117,2 @@ } | ||
* @see module:upload/filerepository~UploadAdapter#abort | ||
* @returns {Promise} | ||
*/ | ||
@@ -142,8 +143,9 @@ abort() { | ||
* @param {Function} reject Callback function to be called when the request cannot be completed. | ||
* @param {File} file File instance to be uploaded. | ||
*/ | ||
_initListeners( resolve, reject ) { | ||
_initListeners( resolve, reject, file ) { | ||
const xhr = this.xhr; | ||
const loader = this.loader; | ||
const t = this.t; | ||
const genericError = t( 'Cannot upload file:' ) + ` ${ loader.file.name }.`; | ||
const genericError = t( 'Cannot upload file:' ) + ` ${ file.name }.`; | ||
@@ -180,7 +182,8 @@ xhr.addEventListener( 'error', () => reject( genericError ) ); | ||
* @private | ||
* @param {File} file File instance to be uploaded. | ||
*/ | ||
_sendRequest() { | ||
_sendRequest( file ) { | ||
// Prepare form data. | ||
const data = new FormData(); | ||
data.append( 'upload', this.loader.file ); | ||
data.append( 'upload', file ); | ||
data.append( 'ckCsrfToken', getCsrfToken() ); | ||
@@ -187,0 +190,0 @@ |
/** | ||
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -4,0 +4,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58252
52
238
+ Added@ckeditor/ckeditor5-core@12.3.0(transitive)
+ Added@ckeditor/ckeditor5-engine@14.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@13.0.2(transitive)
+ Added@ckeditor/ckeditor5-upload@11.1.1(transitive)
+ Added@ckeditor/ckeditor5-utils@13.0.114.0.0(transitive)
+ Addedckeditor5@12.4.0(transitive)
- Removed@ckeditor/ckeditor5-core@11.1.0(transitive)
- Removed@ckeditor/ckeditor5-engine@12.0.0(transitive)
- Removed@ckeditor/ckeditor5-theme-lark@12.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@11.2.0(transitive)
- Removed@ckeditor/ckeditor5-upload@10.0.4(transitive)
- Removed@ckeditor/ckeditor5-utils@11.1.0(transitive)
- Removedckeditor5@11.2.0(transitive)