@ckeditor/ckeditor5-adapter-ckfinder 36.0.1 → 37.0.0-alpha.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/package.json +18 -17
- package/src/index.d.ts +8 -0
- package/src/uploadadapter.d.ts +32 -0
- package/src/uploadadapter.js +3 -3
- package/src/utils.d.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-adapter-ckfinder",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.0.0-alpha.0",
|
|
4
4
|
"description": "CKFinder adapter for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "^
|
|
15
|
+
"ckeditor5": "^37.0.0-alpha.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@ckeditor/ckeditor5-basic-styles": "^
|
|
19
|
-
"@ckeditor/ckeditor5-core": "^
|
|
20
|
-
"@ckeditor/ckeditor5-clipboard": "^
|
|
21
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
22
|
-
"@ckeditor/ckeditor5-editor-classic": "^
|
|
23
|
-
"@ckeditor/ckeditor5-enter": "^
|
|
24
|
-
"@ckeditor/ckeditor5-heading": "^
|
|
25
|
-
"@ckeditor/ckeditor5-image": "^
|
|
26
|
-
"@ckeditor/ckeditor5-list": "^
|
|
27
|
-
"@ckeditor/ckeditor5-paragraph": "^
|
|
28
|
-
"@ckeditor/ckeditor5-theme-lark": "^
|
|
29
|
-
"@ckeditor/ckeditor5-typing": "^
|
|
30
|
-
"@ckeditor/ckeditor5-undo": "^
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "^
|
|
18
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.0.0-alpha.0",
|
|
19
|
+
"@ckeditor/ckeditor5-core": "^37.0.0-alpha.0",
|
|
20
|
+
"@ckeditor/ckeditor5-clipboard": "^37.0.0-alpha.0",
|
|
21
|
+
"@ckeditor/ckeditor5-dev-utils": "^34.0.0",
|
|
22
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.0.0-alpha.0",
|
|
23
|
+
"@ckeditor/ckeditor5-enter": "^37.0.0-alpha.0",
|
|
24
|
+
"@ckeditor/ckeditor5-heading": "^37.0.0-alpha.0",
|
|
25
|
+
"@ckeditor/ckeditor5-image": "^37.0.0-alpha.0",
|
|
26
|
+
"@ckeditor/ckeditor5-list": "^37.0.0-alpha.0",
|
|
27
|
+
"@ckeditor/ckeditor5-paragraph": "^37.0.0-alpha.0",
|
|
28
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.0.0-alpha.0",
|
|
29
|
+
"@ckeditor/ckeditor5-typing": "^37.0.0-alpha.0",
|
|
30
|
+
"@ckeditor/ckeditor5-undo": "^37.0.0-alpha.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "^37.0.0-alpha.0",
|
|
32
32
|
"typescript": "^4.8.4",
|
|
33
33
|
"webpack": "^5.58.1",
|
|
34
34
|
"webpack-cli": "^4.9.0"
|
|
@@ -59,5 +59,6 @@
|
|
|
59
59
|
"dll:build": "webpack",
|
|
60
60
|
"build": "tsc -p ./tsconfig.release.json",
|
|
61
61
|
"postversion": "npm run build"
|
|
62
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"types": "src/index.d.ts"
|
|
63
64
|
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module adapter-ckfinder
|
|
7
|
+
*/
|
|
8
|
+
export { default as UploadAdapter } from './uploadadapter';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module adapter-ckfinder/uploadadapter
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependencies } from 'ckeditor5/src/core';
|
|
9
|
+
/**
|
|
10
|
+
* A plugin that enables file uploads in CKEditor 5 using the CKFinder server–side connector.
|
|
11
|
+
*
|
|
12
|
+
* See the {@glink features/file-management/ckfinder "CKFinder file manager integration"} guide to learn how to configure
|
|
13
|
+
* and use this feature as well as find out more about the full integration with the file manager
|
|
14
|
+
* provided by the {@link module:ckfinder/ckfinder~CKFinder} plugin.
|
|
15
|
+
*
|
|
16
|
+
* Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} guide to learn
|
|
17
|
+
* about other ways to upload images into CKEditor 5.
|
|
18
|
+
*/
|
|
19
|
+
export default class CKFinderUploadAdapter extends Plugin {
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): PluginDependencies;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get pluginName(): 'CKFinderUploadAdapter';
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
init(): void;
|
|
32
|
+
}
|
package/src/uploadadapter.js
CHANGED
|
@@ -12,12 +12,12 @@ import { getCsrfToken } from './utils';
|
|
|
12
12
|
/**
|
|
13
13
|
* A plugin that enables file uploads in CKEditor 5 using the CKFinder server–side connector.
|
|
14
14
|
*
|
|
15
|
-
* See the {@glink features/
|
|
15
|
+
* See the {@glink features/file-management/ckfinder "CKFinder file manager integration"} guide to learn how to configure
|
|
16
16
|
* and use this feature as well as find out more about the full integration with the file manager
|
|
17
17
|
* provided by the {@link module:ckfinder/ckfinder~CKFinder} plugin.
|
|
18
18
|
*
|
|
19
|
-
* Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} to learn
|
|
20
|
-
* other ways to upload images into CKEditor 5.
|
|
19
|
+
* Check out the {@glink features/images/image-upload/image-upload comprehensive "Image upload overview"} guide to learn
|
|
20
|
+
* about other ways to upload images into CKEditor 5.
|
|
21
21
|
*/
|
|
22
22
|
export default class CKFinderUploadAdapter extends Plugin {
|
|
23
23
|
/**
|
package/src/utils.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Returns the CSRF token value. The value is a hash stored in `document.cookie`
|
|
7
|
+
* under the `ckCsrfToken` key. The CSRF token can be used to secure the communication
|
|
8
|
+
* between the web browser and the CKFinder server.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getCsrfToken(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Returns the value of the cookie with a given name or `null` if the cookie is not found.
|
|
13
|
+
*/
|
|
14
|
+
export declare function getCookie(name: string): string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the value of the cookie with a given name.
|
|
17
|
+
*/
|
|
18
|
+
export declare function setCookie(name: string, value: string): void;
|