@ckeditor/ckeditor5-upload 28.0.0 → 30.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +1 -1
- package/README.md +3 -3
- package/ckeditor5-metadata.json +18 -0
- package/package.json +7 -6
- package/src/adapters/base64uploadadapter.js +1 -1
- package/src/adapters/simpleuploadadapter.js +6 -6
- package/src/filerepository.js +3 -3
- package/CHANGELOG.md +0 -251
package/LICENSE.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Software License Agreement
|
2
2
|
==========================
|
3
3
|
|
4
|
-
**CKEditor 5
|
4
|
+
**CKEditor 5 upload feature** – https://github.com/ckeditor/ckeditor5-upload <br>
|
5
5
|
Copyright (c) 2003-2021, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
|
6
6
|
|
7
7
|
Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).
|
package/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
CKEditor 5 file upload
|
1
|
+
CKEditor 5 file upload feature
|
2
2
|
========================================
|
3
3
|
|
4
4
|
[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-upload.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-upload)
|
5
|
-
[![
|
6
|
-
[![
|
5
|
+
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
6
|
+
[![Build Status](https://travis-ci.com/ckeditor/ckeditor5.svg?branch=master)](https://travis-ci.com/ckeditor/ckeditor5)
|
7
7
|
|
8
8
|
This package implements various file upload utilities for CKEditor 5.
|
9
9
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"plugins": [
|
3
|
+
{
|
4
|
+
"name": "Base64 upload adapter",
|
5
|
+
"className": "Base64UploadAdapter",
|
6
|
+
"description": "An image upload tool. It converts images inserted into the rich-text editor into Base64-encoded strings in the editor output.",
|
7
|
+
"docs": "features/images/image-upload/base64-upload-adapter.html",
|
8
|
+
"path": "src/adapters/base64uploadadapter.js"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"name": "Simple upload adapter",
|
12
|
+
"className": "SimpleUploadAdapter",
|
13
|
+
"description": "An image upload tool. It allows for uploading images to an application running on your server using the <code>XMLHttpRequest</code> API with a minimal editor configuration.",
|
14
|
+
"docs": "features/images/image-upload/simple-upload-adapter.html",
|
15
|
+
"path": "src/adapters/simpleuploadadapter.js"
|
16
|
+
}
|
17
|
+
]
|
18
|
+
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ckeditor/ckeditor5-upload",
|
3
|
-
"version": "
|
4
|
-
"description": "Upload
|
3
|
+
"version": "30.0.0",
|
4
|
+
"description": "Upload feature for CKEditor 5.",
|
5
5
|
"keywords": [
|
6
6
|
"ckeditor",
|
7
7
|
"ckeditor5",
|
@@ -11,9 +11,9 @@
|
|
11
11
|
],
|
12
12
|
"main": "src/index.js",
|
13
13
|
"dependencies": {
|
14
|
-
"@ckeditor/ckeditor5-core": "^
|
15
|
-
"@ckeditor/ckeditor5-utils": "^
|
16
|
-
"@ckeditor/ckeditor5-ui": "^
|
14
|
+
"@ckeditor/ckeditor5-core": "^30.0.0",
|
15
|
+
"@ckeditor/ckeditor5-utils": "^30.0.0",
|
16
|
+
"@ckeditor/ckeditor5-ui": "^30.0.0"
|
17
17
|
},
|
18
18
|
"engines": {
|
19
19
|
"node": ">=12.0.0",
|
@@ -31,6 +31,7 @@
|
|
31
31
|
"files": [
|
32
32
|
"lang",
|
33
33
|
"src",
|
34
|
-
"theme"
|
34
|
+
"theme",
|
35
|
+
"ckeditor5-metadata.json"
|
35
36
|
]
|
36
37
|
}
|
@@ -19,7 +19,7 @@ import FileRepository from '../filerepository';
|
|
19
19
|
* This kind of image upload does not require server processing – images are stored with the rest of the text and
|
20
20
|
* displayed by the web browser without additional requests.
|
21
21
|
*
|
22
|
-
* Check out the {@glink features/image-upload/image-upload comprehensive "Image upload overview"} to learn about
|
22
|
+
* Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about
|
23
23
|
* other ways to upload images into CKEditor 5.
|
24
24
|
*
|
25
25
|
* @extends module:core/plugin~Plugin
|
@@ -30,10 +30,10 @@ import { logWarning } from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
|
|
30
30
|
* .then( ... )
|
31
31
|
* .catch( ... );
|
32
32
|
*
|
33
|
-
* See the {@glink features/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn how to
|
33
|
+
* See the {@glink features/images/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn how to
|
34
34
|
* learn more about the feature (configuration, server–side requirements, etc.).
|
35
35
|
*
|
36
|
-
* Check out the {@glink features/image-upload/image-upload comprehensive "Image upload overview"} to learn about
|
36
|
+
* Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn about
|
37
37
|
* other ways to upload images into CKEditor 5.
|
38
38
|
*
|
39
39
|
* @extends module:core/plugin~Plugin
|
@@ -243,7 +243,7 @@ class Adapter {
|
|
243
243
|
* .then( ... )
|
244
244
|
* .catch( ... );
|
245
245
|
*
|
246
|
-
* See the {@glink features/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn more.
|
246
|
+
* See the {@glink features/images/image-upload/simple-upload-adapter "Simple upload adapter"} guide to learn more.
|
247
247
|
*
|
248
248
|
* See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
|
249
249
|
*
|
@@ -263,7 +263,7 @@ class Adapter {
|
|
263
263
|
* upload of resources (images) inserted into the editor content.
|
264
264
|
*
|
265
265
|
* Learn more about the server application requirements in the
|
266
|
-
* {@glink features/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section
|
266
|
+
* {@glink features/images/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section
|
267
267
|
* of the feature guide.
|
268
268
|
*
|
269
269
|
* @member {String} module:upload/adapters/simpleuploadadapter~SimpleUploadConfig#uploadUrl
|
@@ -287,7 +287,7 @@ class Adapter {
|
|
287
287
|
* .catch( ... );
|
288
288
|
*
|
289
289
|
* Learn more about the server application requirements in the
|
290
|
-
* {@glink features/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section
|
290
|
+
* {@glink features/images/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section
|
291
291
|
* of the feature guide.
|
292
292
|
*
|
293
293
|
* @member {Object.<String, String>} module:upload/adapters/simpleuploadadapter~SimpleUploadConfig#headers
|
@@ -309,7 +309,7 @@ class Adapter {
|
|
309
309
|
* .catch( ... );
|
310
310
|
*
|
311
311
|
* Learn more about the server application requirements in the
|
312
|
-
* {@glink features/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section
|
312
|
+
* {@glink features/images/image-upload/simple-upload-adapter#server-side-configuration "Server-side configuration"} section
|
313
313
|
* of the feature guide.
|
314
314
|
*
|
315
315
|
* @member {Boolean} [module:upload/adapters/simpleuploadadapter~SimpleUploadConfig#withCredentials=false]
|
package/src/filerepository.js
CHANGED
@@ -26,7 +26,7 @@ import uid from '@ckeditor/ckeditor5-utils/src/uid.js';
|
|
26
26
|
* (sending the file and handling server's response). You can use one of the existing plugins introducing upload adapters
|
27
27
|
* (e.g. {@link module:easy-image/cloudservicesuploadadapter~CloudServicesUploadAdapter} or
|
28
28
|
* {@link module:adapter-ckfinder/uploadadapter~CKFinderUploadAdapter}) or write your own one – see
|
29
|
-
* the {@glink framework/guides/deep-dive/upload-adapter
|
29
|
+
* the {@glink framework/guides/deep-dive/upload-adapter Custom image upload adapter deep dive guide}.
|
30
30
|
*
|
31
31
|
* Then, you can use {@link module:upload/filerepository~FileRepository#createLoader `createLoader()`} and the returned
|
32
32
|
* {@link module:upload/filerepository~FileLoader} instance to load and upload files.
|
@@ -157,14 +157,14 @@ export default class FileRepository extends Plugin {
|
|
157
157
|
* **If you see this warning when using one of the {@glink builds/index CKEditor 5 Builds}**
|
158
158
|
* it means that you did not configure any of the upload adapters available by default in those builds.
|
159
159
|
*
|
160
|
-
* See the {@glink features/image-upload/image-upload comprehensive "Image upload overview"} to learn which upload
|
160
|
+
* See the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn which upload
|
161
161
|
* adapters are available in the builds and how to configure them.
|
162
162
|
*
|
163
163
|
* **If you see this warning when using a custom build** there is a chance that you enabled
|
164
164
|
* a feature like {@link module:image/imageupload~ImageUpload},
|
165
165
|
* or {@link module:image/imageupload/imageuploadui~ImageUploadUI} but you did not enable any upload adapter.
|
166
166
|
* You can choose one of the existing upload adapters listed in the
|
167
|
-
* {@glink features/image-upload/image-upload "Image upload overview"}.
|
167
|
+
* {@glink features/images/image-upload/image-upload "Image upload overview"}.
|
168
168
|
*
|
169
169
|
* You can also implement your {@glink framework/guides/deep-dive/upload-adapter own image upload adapter}.
|
170
170
|
*
|
package/CHANGELOG.md
DELETED
@@ -1,251 +0,0 @@
|
|
1
|
-
Changelog
|
2
|
-
=========
|
3
|
-
|
4
|
-
All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md.
|
5
|
-
|
6
|
-
Changes for the past releases are available below.
|
7
|
-
|
8
|
-
## [19.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v18.0.0...v19.0.0) (2020-04-29)
|
9
|
-
|
10
|
-
### Bug fixes
|
11
|
-
|
12
|
-
* Restored a condition handling an edge case in upload when promise chains are aborted. Closes [ckeditor/ckeditor5#5892](https://github.com/ckeditor/ckeditor5/issues/5892). ([ed7187b](https://github.com/ckeditor/ckeditor5-upload/commit/ed7187b))
|
13
|
-
|
14
|
-
|
15
|
-
## [18.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v17.0.0...v18.0.0) (2020-03-19)
|
16
|
-
|
17
|
-
Internal changes only (updated dependencies, documentation, etc.).
|
18
|
-
|
19
|
-
|
20
|
-
## [17.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v16.0.0...v17.0.0) (2020-02-19)
|
21
|
-
|
22
|
-
### Other changes
|
23
|
-
|
24
|
-
* Updated translations. ([5be630b](https://github.com/ckeditor/ckeditor5-upload/commit/5be630b))
|
25
|
-
|
26
|
-
|
27
|
-
## [16.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v15.0.0...v16.0.0) (2019-12-04)
|
28
|
-
|
29
|
-
### Other changes
|
30
|
-
|
31
|
-
* Updated translations. ([188255c](https://github.com/ckeditor/ckeditor5-upload/commit/188255c))
|
32
|
-
|
33
|
-
|
34
|
-
## [15.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v12.0.0...v15.0.0) (2019-10-23)
|
35
|
-
|
36
|
-
### Bug fixes
|
37
|
-
|
38
|
-
* Add missing `catch()` clauses to file loader promises. ([40906d4](https://github.com/ckeditor/ckeditor5-upload/commit/40906d4))
|
39
|
-
|
40
|
-
### Other changes
|
41
|
-
|
42
|
-
* Updated translations. ([290db0f](https://github.com/ckeditor/ckeditor5-upload/commit/290db0f)) ([1d7e907](https://github.com/ckeditor/ckeditor5-upload/commit/1d7e907))
|
43
|
-
|
44
|
-
|
45
|
-
## [12.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v11.1.1...v12.0.0) (2019-08-26)
|
46
|
-
|
47
|
-
### Features
|
48
|
-
|
49
|
-
* Implemented the `SimpleUploadAdapter` plugin which enables file uploads in CKEditor 5 using configurable `XMLHttpRequests` to a server. Closes [ckeditor/ckeditor5#1791](https://github.com/ckeditor/ckeditor5/issues/1791). ([441c597](https://github.com/ckeditor/ckeditor5-upload/commit/441c597))
|
50
|
-
|
51
|
-
```js
|
52
|
-
import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter'
|
53
|
-
```
|
54
|
-
* Implemented the responsive image support in the `SimpleUploadAdapter`. Closes [#97](https://github.com/ckeditor/ckeditor5-upload/issues/97). ([b5092a4](https://github.com/ckeditor/ckeditor5-upload/commit/b5092a4))
|
55
|
-
|
56
|
-
### Other changes
|
57
|
-
|
58
|
-
* Add `ImageLoader.data` property for already read file to allow synchronous access to file data. ([ec56ab8](https://github.com/ckeditor/ckeditor5-upload/commit/ec56ab8))
|
59
|
-
* The issue tracker for this package was moved to https://github.com/ckeditor/ckeditor5/issues. See [ckeditor/ckeditor5#1988](https://github.com/ckeditor/ckeditor5/issues/1988). ([1893794](https://github.com/ckeditor/ckeditor5-upload/commit/1893794))
|
60
|
-
* Updated translations. ([594b6c1](https://github.com/ckeditor/ckeditor5-upload/commit/594b6c1))
|
61
|
-
|
62
|
-
### BREAKING CHANGES
|
63
|
-
|
64
|
-
* Moved the `Base64UploadAdapter` plugin file to `ckeditor5-upload/src/adapters/base64uploadadapter.js`. Make sure import paths your project are up–to–date:
|
65
|
-
|
66
|
-
```js
|
67
|
-
import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter'
|
68
|
-
```
|
69
|
-
|
70
|
-
|
71
|
-
## [11.1.1](https://github.com/ckeditor/ckeditor5-upload/compare/v11.1.0...v11.1.1) (2019-07-10)
|
72
|
-
|
73
|
-
Internal changes only (updated dependencies, documentation, etc.).
|
74
|
-
|
75
|
-
|
76
|
-
## [11.1.0](https://github.com/ckeditor/ckeditor5-upload/compare/v11.0.2...v11.1.0) (2019-07-04)
|
77
|
-
|
78
|
-
### Features
|
79
|
-
|
80
|
-
* Introduced the Base64 image upload adapter. Closes [ckeditor/ckeditor5#1378](https://github.com/ckeditor/ckeditor5/issues/1378). ([938f0f7](https://github.com/ckeditor/ckeditor5-upload/commit/938f0f7))
|
81
|
-
|
82
|
-
|
83
|
-
## [11.0.2](https://github.com/ckeditor/ckeditor5-upload/compare/v11.0.1...v11.0.2) (2019-06-05)
|
84
|
-
|
85
|
-
### Other changes
|
86
|
-
|
87
|
-
* Updated translations. ([73c6761](https://github.com/ckeditor/ckeditor5-upload/commit/73c6761))
|
88
|
-
|
89
|
-
|
90
|
-
## [11.0.1](https://github.com/ckeditor/ckeditor5-upload/compare/v11.0.0...v11.0.1) (2019-04-10)
|
91
|
-
|
92
|
-
### Other changes
|
93
|
-
|
94
|
-
* Updated translations. ([eac33b1](https://github.com/ckeditor/ckeditor5-upload/commit/eac33b1))
|
95
|
-
|
96
|
-
|
97
|
-
## [11.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.4...v11.0.0) (2019-02-28)
|
98
|
-
|
99
|
-
### Bug fixes
|
100
|
-
|
101
|
-
* `FileLoader` now accepts `Promise` instead of a `File` instance. Closes [#87](https://github.com/ckeditor/ckeditor5-upload/issues/87). ([62a8c69](https://github.com/ckeditor/ckeditor5-upload/commit/62a8c69))
|
102
|
-
|
103
|
-
### Other changes
|
104
|
-
|
105
|
-
* Add catch block for failed file promise in `FileRepository`. ([a2de5d5](https://github.com/ckeditor/ckeditor5-upload/commit/a2de5d5))
|
106
|
-
* Updated translations. ([6aaad73](https://github.com/ckeditor/ckeditor5-upload/commit/6aaad73)) ([b0469a8](https://github.com/ckeditor/ckeditor5-upload/commit/b0469a8)) ([f6e27cb](https://github.com/ckeditor/ckeditor5-upload/commit/f6e27cb))
|
107
|
-
|
108
|
-
### BREAKING CHANGES
|
109
|
-
|
110
|
-
* 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))
|
111
|
-
* The `FileLoader.file` property was changed to a getter which returns a native `Promise` instance instead of a `File` instance. The returned promise resolves to a `File` instance.
|
112
|
-
|
113
|
-
|
114
|
-
## [10.0.4](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.3...v10.0.4) (2018-12-05)
|
115
|
-
|
116
|
-
### Other changes
|
117
|
-
|
118
|
-
* Updated translations. ([489b6fa](https://github.com/ckeditor/ckeditor5-upload/commit/489b6fa)) ([f435630](https://github.com/ckeditor/ckeditor5-upload/commit/f435630))
|
119
|
-
|
120
|
-
|
121
|
-
## [10.0.3](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.2...v10.0.3) (2018-10-08)
|
122
|
-
|
123
|
-
### Other changes
|
124
|
-
|
125
|
-
* Updated translations. ([871eb44](https://github.com/ckeditor/ckeditor5-upload/commit/871eb44))
|
126
|
-
|
127
|
-
|
128
|
-
## [10.0.2](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.1...v10.0.2) (2018-07-18)
|
129
|
-
|
130
|
-
### Other changes
|
131
|
-
|
132
|
-
* Updated translations. ([ce32eb2](https://github.com/ckeditor/ckeditor5-upload/commit/ce32eb2), [9adb325](https://github.com/ckeditor/ckeditor5-upload/commit/9adb325))
|
133
|
-
|
134
|
-
|
135
|
-
## [10.0.1](https://github.com/ckeditor/ckeditor5-upload/compare/v10.0.0...v10.0.1) (2018-06-21)
|
136
|
-
|
137
|
-
### Other changes
|
138
|
-
|
139
|
-
* Updated translations.
|
140
|
-
|
141
|
-
|
142
|
-
## [10.0.0](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-beta.4...v10.0.0) (2018-04-25)
|
143
|
-
|
144
|
-
### Other changes
|
145
|
-
|
146
|
-
* Changed the license to GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991). ([8293240](https://github.com/ckeditor/ckeditor5-upload/commit/8293240))
|
147
|
-
|
148
|
-
### BREAKING CHANGES
|
149
|
-
|
150
|
-
* The license under which CKEditor 5 is released has been changed from a triple GPL, LGPL and MPL license to a GPL2+ only. See [ckeditor/ckeditor5#991](https://github.com/ckeditor/ckeditor5/issues/991) for more information.
|
151
|
-
|
152
|
-
|
153
|
-
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19)
|
154
|
-
|
155
|
-
Internal changes only (updated dependencies, documentation, etc.).
|
156
|
-
|
157
|
-
|
158
|
-
## [1.0.0-beta.2](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2018-04-10)
|
159
|
-
|
160
|
-
Internal changes only (updated dependencies, documentation, etc.).
|
161
|
-
|
162
|
-
|
163
|
-
## [1.0.0-beta.1](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-alpha.2...v1.0.0-beta.1) (2018-03-15)
|
164
|
-
|
165
|
-
### Bug fixes
|
166
|
-
|
167
|
-
* Fixed incorrect `ImageUploadButton` and `ImageUploadCommand` binding. Closes [#77](https://github.com/ckeditor/ckeditor5-upload/issues/77). Closes https://github.com/ckeditor/ckeditor5-ui/issues/357. ([d231ea6](https://github.com/ckeditor/ckeditor5-upload/commit/d231ea6))
|
168
|
-
|
169
|
-
### Other changes
|
170
|
-
|
171
|
-
* Migrated package styles to PostCSS. Moved visual styles to `@ckeditor/ckeditor5-theme-lark` (see [ckeditor/ckeditor5-ui#144](https://github.com/ckeditor/ckeditor5-ui/issues/144)). ([faf6100](https://github.com/ckeditor/ckeditor5-upload/commit/faf6100))
|
172
|
-
* Moved the image upload plugins to the `@ckeditor/ckeditor5-image` package. Minor cleanup in the API. Closes [#22](https://github.com/ckeditor/ckeditor5-upload/issues/22). ([55697a9](https://github.com/ckeditor/ckeditor5-upload/commit/55697a9))
|
173
|
-
* Use post-fixer API. ([08e9d09](https://github.com/ckeditor/ckeditor5-upload/commit/08e9d09))
|
174
|
-
|
175
|
-
### BREAKING CHANGES
|
176
|
-
|
177
|
-
* Renamed `Adapter` to `UploadAdapter`.
|
178
|
-
* Removed `ImageUpload` plugin. It can be no found in ckeditor5-image repository.
|
179
|
-
* Removed `ImageUploadEngine` plugin. It can be no found in ckeditor5-image repository.
|
180
|
-
* Removed `ImageUploadProgress` plugin. It can be no found in ckeditor5-image repository.
|
181
|
-
* Removed `ImageUploadButton` plugin. It can be no found in ckeditor5-image repository.
|
182
|
-
* Renamed `FileRepository#createAdapter()` to `FileRepository#createUploadAdapter()`.
|
183
|
-
* Renamed `filerepository-no-adapter` error to `filerepository-no-upload-adapter`.
|
184
|
-
|
185
|
-
|
186
|
-
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-upload/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14)
|
187
|
-
|
188
|
-
### Bug fixes
|
189
|
-
|
190
|
-
* Destroying `FileDialogButtonView` should not throw an error. Closes [#66](https://github.com/ckeditor/ckeditor5-upload/issues/66). ([2d4ba62](https://github.com/ckeditor/ckeditor5-upload/commit/2d4ba62))
|
191
|
-
* Images pasted with additional HTML content will not be handled by the upload plugin which prevents data pasted from MS Word to be treated as an image. Closes [#68](https://github.com/ckeditor/ckeditor5-upload/issues/68). ([8d0644a](https://github.com/ckeditor/ckeditor5-upload/commit/8d0644a))
|
192
|
-
|
193
|
-
### Other changes
|
194
|
-
|
195
|
-
* Updated translations. ([93e9643](https://github.com/ckeditor/ckeditor5-upload/commit/93e9643))
|
196
|
-
* Aligned UI library usage to the [changes in the UI framework](https://github.com/ckeditor/ckeditor5-ui/pull/332).
|
197
|
-
|
198
|
-
### BREAKING CHANGES
|
199
|
-
|
200
|
-
* The `FileDialogButtonView` is not a `ButtonView` instance anymore but a wrapper instead. The button of the component is available under the `#buttonView` property.
|
201
|
-
|
202
|
-
|
203
|
-
## [1.0.0-alpha.1](https://github.com/ckeditor/ckeditor5-upload/compare/v0.2.0...v1.0.0-alpha.1) (2017-10-03)
|
204
|
-
|
205
|
-
### Bug fixes
|
206
|
-
|
207
|
-
* Image placeholder is now correctly displayed on Firefox and Edge. Closes [#56](https://github.com/ckeditor/ckeditor5-upload/issues/56). ([785e88b](https://github.com/ckeditor/ckeditor5-upload/commit/785e88b))
|
208
|
-
* Upload command should not crash when upload adapter is not specified (instead, FileRepository logs an error). Closes [#59](https://github.com/ckeditor/ckeditor5-upload/issues/59). ([14b738b](https://github.com/ckeditor/ckeditor5-upload/commit/14b738b))
|
209
|
-
|
210
|
-
### Other changes
|
211
|
-
|
212
|
-
* `FileRepository` will automatically warn when it's initialized but no upload adapter was enabled. Closes [#58](https://github.com/ckeditor/ckeditor5-upload/issues/58). ([29aa315](https://github.com/ckeditor/ckeditor5-upload/commit/29aa315))
|
213
|
-
* Placeholder image will now look better on wider editors. Closes [#63](https://github.com/ckeditor/ckeditor5-upload/issues/63). ([edb5e81](https://github.com/ckeditor/ckeditor5-upload/commit/edb5e81))
|
214
|
-
|
215
|
-
|
216
|
-
## [0.2.0](https://github.com/ckeditor/ckeditor5-upload/compare/v0.1.0...v0.2.0) (2017-09-03)
|
217
|
-
|
218
|
-
### Bug fixes
|
219
|
-
|
220
|
-
* [Safari, Edge] The image upload (button) feature will not throw an error anymore when trying to access picked files. The feature should not use `for...of` loop on native `FileList` because Safari and Edge do not support `Symbol.iterator` for it yet. Closes [#35](https://github.com/ckeditor/ckeditor5-upload/issues/35). ([f4efd9b](https://github.com/ckeditor/ckeditor5-upload/commit/f4efd9b))
|
221
|
-
* An image dropped on another image will not redirect the browser to the file's path. Closes [#32](https://github.com/ckeditor/ckeditor5-upload/issues/32). ([4f533be](https://github.com/ckeditor/ckeditor5-upload/commit/4f533be))
|
222
|
-
* Bound `ImageUploadButton#isEnabled` to `ImageUploadCommand#isEnabled`. Closes [#43](https://github.com/ckeditor/ckeditor5-upload/issues/43). ([ba6de66](https://github.com/ckeditor/ckeditor5-upload/commit/ba6de66))
|
223
|
-
* Fixed two issues related to dropping images. First, when dropping a file into an empty paragraph, that paragraph should be replaced with that image. Second, drop position should be read correctly when the editor is focused upon drop. Closes [#42](https://github.com/ckeditor/ckeditor5-upload/issues/42). Closes [#29](https://github.com/ckeditor/ckeditor5-upload/issues/29). ([fec452d](https://github.com/ckeditor/ckeditor5-upload/commit/fec452d))
|
224
|
-
* Image will be inserted after the block if the selection is placed at the block's end. Closes [#7](https://github.com/ckeditor/ckeditor5-upload/issues/7). ([70742f9](https://github.com/ckeditor/ckeditor5-upload/commit/70742f9))
|
225
|
-
* When image upload is aborted, now the "image placeholder" element is permanently removed so it is not reinserted on undo. Closes [#38](https://github.com/ckeditor/ckeditor5-upload/issues/38). ([aff6382](https://github.com/ckeditor/ckeditor5-upload/commit/aff6382))
|
226
|
-
|
227
|
-
### Features
|
228
|
-
|
229
|
-
* Responsive images support in image upload. Closes [#34](https://github.com/ckeditor/ckeditor5-upload/issues/34). ([9a022a2](https://github.com/ckeditor/ckeditor5-upload/commit/9a022a2))
|
230
|
-
* The `ImageUploadCommand` now accepts `insertAt` position which allows customizing where the image will be inserted. Closes [#45](https://github.com/ckeditor/ckeditor5-upload/issues/45). ([b90c8d7](https://github.com/ckeditor/ckeditor5-upload/commit/b90c8d7))
|
231
|
-
|
232
|
-
### Other changes
|
233
|
-
|
234
|
-
* Aborting upload when image is removed and removing image on upload error. Closes [#2](https://github.com/ckeditor/ckeditor5-upload/issues/2). ([c3bbb57](https://github.com/ckeditor/ckeditor5-upload/commit/c3bbb57))
|
235
|
-
* Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). ([3d97b81](https://github.com/ckeditor/ckeditor5-upload/commit/3d97b81))
|
236
|
-
* Changed from original to default image. Closes [#49](https://github.com/ckeditor/ckeditor5-upload/issues/49). ([d8d61f3](https://github.com/ckeditor/ckeditor5-upload/commit/d8d61f3))
|
237
|
-
* Cleaned up SVG icons. ([ab81012](https://github.com/ckeditor/ckeditor5-upload/commit/ab81012))
|
238
|
-
* Optional notification title when upload fails. Closes [#30](https://github.com/ckeditor/ckeditor5-upload/issues/30). ([1a6306c](https://github.com/ckeditor/ckeditor5-upload/commit/1a6306c))
|
239
|
-
|
240
|
-
### BREAKING CHANGES
|
241
|
-
|
242
|
-
* `UploadImageCommand` doesn't optimize the drop position itself anymore. Instead, a separate `findOptimalInsertionPosition()` function was introduced.
|
243
|
-
* `UploadImageCommand` doesn't verify the type of file anymore. This needs to be done by the caller.
|
244
|
-
* The command API has been changed.
|
245
|
-
|
246
|
-
|
247
|
-
## 0.1.0 (2017-05-07)
|
248
|
-
|
249
|
-
### Features
|
250
|
-
|
251
|
-
* Initial implementation. Closes [#1](https://github.com/ckeditor/ckeditor5-upload/issues/1).
|