@ckeditor/ckeditor5-upload 0.0.0-nightly-20240603.0 → 0.0.0-nightly-20240604.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/dist/index.js +235 -314
- package/dist/index.js.map +1 -1
- package/dist/types/adapters/base64uploadadapter.d.ts +1 -1
- package/dist/types/filereader.d.ts +1 -1
- package/dist/types/filerepository.d.ts +1 -1
- package/package.json +3 -3
- package/src/adapters/base64uploadadapter.d.ts +1 -1
- package/src/adapters/base64uploadadapter.js +1 -1
- package/src/filereader.d.ts +1 -1
- package/src/filereader.js +1 -1
- package/src/filerepository.d.ts +1 -1
- package/src/filerepository.js +3 -6
|
@@ -120,7 +120,7 @@ declare const FileLoader_base: {
|
|
|
120
120
|
*
|
|
121
121
|
* It is used to control the process of reading the file and uploading it using the specified upload adapter.
|
|
122
122
|
*/
|
|
123
|
-
declare class FileLoader extends
|
|
123
|
+
declare class FileLoader extends FileLoader_base {
|
|
124
124
|
/**
|
|
125
125
|
* Unique id of FileLoader instance.
|
|
126
126
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-upload",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240604.0",
|
|
4
4
|
"description": "Upload feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
16
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
15
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20240604.0",
|
|
16
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20240604.0"
|
|
17
17
|
},
|
|
18
18
|
"author": "CKSource (http://cksource.com/)",
|
|
19
19
|
"license": "GPL-2.0-or-later",
|
|
@@ -9,7 +9,7 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
|
9
9
|
import FileRepository from '../filerepository.js';
|
|
10
10
|
/**
|
|
11
11
|
* A plugin that converts images inserted into the editor into [Base64 strings](https://en.wikipedia.org/wiki/Base64)
|
|
12
|
-
* in the {@glink getting-started/
|
|
12
|
+
* in the {@glink installation/getting-started/getting-and-setting-data editor output}.
|
|
13
13
|
*
|
|
14
14
|
* This kind of image upload does not require server processing – images are stored with the rest of the text and
|
|
15
15
|
* displayed by the web browser without additional requests.
|
|
@@ -10,7 +10,7 @@ import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
|
10
10
|
import FileRepository from '../filerepository.js';
|
|
11
11
|
/**
|
|
12
12
|
* A plugin that converts images inserted into the editor into [Base64 strings](https://en.wikipedia.org/wiki/Base64)
|
|
13
|
-
* in the {@glink getting-started/
|
|
13
|
+
* in the {@glink installation/getting-started/getting-and-setting-data editor output}.
|
|
14
14
|
*
|
|
15
15
|
* This kind of image upload does not require server processing – images are stored with the rest of the text and
|
|
16
16
|
* displayed by the web browser without additional requests.
|
package/src/filereader.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare const FileReader_base: {
|
|
|
9
9
|
/**
|
|
10
10
|
* Wrapper over the native `FileReader`.
|
|
11
11
|
*/
|
|
12
|
-
export default class FileReader extends
|
|
12
|
+
export default class FileReader extends FileReader_base {
|
|
13
13
|
total: number;
|
|
14
14
|
/**
|
|
15
15
|
* Instance of native FileReader.
|
package/src/filereader.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ObservableMixin } from '@ckeditor/ckeditor5-utils';
|
|
|
10
10
|
/**
|
|
11
11
|
* Wrapper over the native `FileReader`.
|
|
12
12
|
*/
|
|
13
|
-
export default class FileReader extends
|
|
13
|
+
export default class FileReader extends ObservableMixin() {
|
|
14
14
|
/**
|
|
15
15
|
* Creates an instance of the FileReader.
|
|
16
16
|
*/
|
package/src/filerepository.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ declare const FileLoader_base: {
|
|
|
116
116
|
*
|
|
117
117
|
* It is used to control the process of reading the file and uploading it using the specified upload adapter.
|
|
118
118
|
*/
|
|
119
|
-
declare class FileLoader extends
|
|
119
|
+
declare class FileLoader extends FileLoader_base {
|
|
120
120
|
/**
|
|
121
121
|
* Unique id of FileLoader instance.
|
|
122
122
|
*
|
package/src/filerepository.js
CHANGED
|
@@ -86,17 +86,14 @@ export default class FileRepository extends Plugin {
|
|
|
86
86
|
* This warning shows up when {@link module:upload/filerepository~FileRepository} is being used
|
|
87
87
|
* without {@link module:upload/filerepository~FileRepository#createUploadAdapter defining an upload adapter}.
|
|
88
88
|
*
|
|
89
|
-
* **If you see this warning when using one of the {@glink getting-started/
|
|
89
|
+
* **If you see this warning when using one of the {@glink installation/getting-started/predefined-builds
|
|
90
90
|
* CKEditor 5 Builds}**
|
|
91
91
|
* it means that you did not configure any of the upload adapters available by default in those builds.
|
|
92
92
|
*
|
|
93
|
-
* Predefined builds are a deprecated solution and we strongly advise
|
|
94
|
-
* {@glink updating/new-installation-methods migrating to new installation methods}.
|
|
95
|
-
*
|
|
96
93
|
* See the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn which upload
|
|
97
94
|
* adapters are available in the builds and how to configure them.
|
|
98
95
|
*
|
|
99
|
-
*
|
|
96
|
+
* **If you see this warning when using a custom build** there is a chance that you enabled
|
|
100
97
|
* a feature like {@link module:image/imageupload~ImageUpload},
|
|
101
98
|
* or {@link module:image/imageupload/imageuploadui~ImageUploadUI} but you did not enable any upload adapter.
|
|
102
99
|
* You can choose one of the existing upload adapters listed in the
|
|
@@ -180,7 +177,7 @@ export default class FileRepository extends Plugin {
|
|
|
180
177
|
*
|
|
181
178
|
* It is used to control the process of reading the file and uploading it using the specified upload adapter.
|
|
182
179
|
*/
|
|
183
|
-
class FileLoader extends
|
|
180
|
+
class FileLoader extends ObservableMixin() {
|
|
184
181
|
/**
|
|
185
182
|
* Creates a new instance of `FileLoader`.
|
|
186
183
|
*
|