@ckeditor/ckeditor5-ckbox 40.0.0 → 40.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +6 -2
- package/build/ckbox.js +1 -1
- package/build/translations/ug.js +1 -1
- package/lang/translations/ug.po +1 -1
- package/package.json +3 -2
- package/src/augmentation.d.ts +22 -22
- package/src/augmentation.js +5 -5
- package/src/ckbox.d.ts +33 -33
- package/src/ckbox.js +37 -37
- package/src/ckboxcommand.d.ts +112 -110
- package/src/ckboxcommand.js +328 -302
- package/src/ckboxconfig.d.ts +299 -283
- package/src/ckboxconfig.js +5 -5
- package/src/ckboxediting.d.ts +52 -52
- package/src/ckboxediting.js +369 -362
- package/src/ckboxui.d.ts +21 -21
- package/src/ckboxui.js +47 -47
- package/src/ckboxuploadadapter.d.ts +38 -38
- package/src/ckboxuploadadapter.js +275 -275
- package/src/index.d.ts +13 -13
- package/src/index.js +11 -11
- package/src/utils.d.ts +32 -28
- package/src/utils.js +82 -49
- package/build/ckbox.js.map +0 -1
package/src/ckboxediting.d.ts
CHANGED
@@ -1,52 +1,52 @@
|
|
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 ckbox/ckboxediting
|
7
|
-
*/
|
8
|
-
import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
|
9
|
-
import { Plugin } from 'ckeditor5/src/core';
|
10
|
-
import CKBoxUploadAdapter from './ckboxuploadadapter';
|
11
|
-
/**
|
12
|
-
* The CKBox editing feature. It introduces the {@link module:ckbox/ckboxcommand~CKBoxCommand CKBox command} and
|
13
|
-
* {@link module:ckbox/ckboxuploadadapter~CKBoxUploadAdapter CKBox upload adapter}.
|
14
|
-
*/
|
15
|
-
export default class CKBoxEditing extends Plugin {
|
16
|
-
/**
|
17
|
-
* CKEditor Cloud Services access token.
|
18
|
-
*/
|
19
|
-
private _token;
|
20
|
-
/**
|
21
|
-
* @inheritDoc
|
22
|
-
*/
|
23
|
-
static get pluginName(): "CKBoxEditing";
|
24
|
-
/**
|
25
|
-
* @inheritDoc
|
26
|
-
*/
|
27
|
-
static get requires(): readonly ["CloudServices", "LinkEditing", "PictureEditing", typeof CKBoxUploadAdapter];
|
28
|
-
/**
|
29
|
-
* @inheritDoc
|
30
|
-
*/
|
31
|
-
init(): Promise<void>;
|
32
|
-
/**
|
33
|
-
* Returns a token used by the CKBox plugin for communication with the CKBox service.
|
34
|
-
*/
|
35
|
-
getToken(): InitializedToken;
|
36
|
-
/**
|
37
|
-
* Initializes the `ckbox` editor configuration.
|
38
|
-
*/
|
39
|
-
private _initConfig;
|
40
|
-
/**
|
41
|
-
* Extends the schema to allow the `ckboxImageId` and `ckboxLinkId` attributes for links and images.
|
42
|
-
*/
|
43
|
-
private _initSchema;
|
44
|
-
/**
|
45
|
-
* Configures the upcast and downcast conversions for the `ckboxImageId` and `ckboxLinkId` attributes.
|
46
|
-
*/
|
47
|
-
private _initConversion;
|
48
|
-
/**
|
49
|
-
* Registers post-fixers that add or remove the `ckboxLinkId` and `ckboxImageId` attributes.
|
50
|
-
*/
|
51
|
-
private _initFixers;
|
52
|
-
}
|
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 ckbox/ckboxediting
|
7
|
+
*/
|
8
|
+
import type { InitializedToken } from '@ckeditor/ckeditor5-cloud-services';
|
9
|
+
import { Plugin } from 'ckeditor5/src/core';
|
10
|
+
import CKBoxUploadAdapter from './ckboxuploadadapter';
|
11
|
+
/**
|
12
|
+
* The CKBox editing feature. It introduces the {@link module:ckbox/ckboxcommand~CKBoxCommand CKBox command} and
|
13
|
+
* {@link module:ckbox/ckboxuploadadapter~CKBoxUploadAdapter CKBox upload adapter}.
|
14
|
+
*/
|
15
|
+
export default class CKBoxEditing extends Plugin {
|
16
|
+
/**
|
17
|
+
* CKEditor Cloud Services access token.
|
18
|
+
*/
|
19
|
+
private _token;
|
20
|
+
/**
|
21
|
+
* @inheritDoc
|
22
|
+
*/
|
23
|
+
static get pluginName(): "CKBoxEditing";
|
24
|
+
/**
|
25
|
+
* @inheritDoc
|
26
|
+
*/
|
27
|
+
static get requires(): readonly ["CloudServices", "LinkEditing", "PictureEditing", typeof CKBoxUploadAdapter];
|
28
|
+
/**
|
29
|
+
* @inheritDoc
|
30
|
+
*/
|
31
|
+
init(): Promise<void>;
|
32
|
+
/**
|
33
|
+
* Returns a token used by the CKBox plugin for communication with the CKBox service.
|
34
|
+
*/
|
35
|
+
getToken(): InitializedToken;
|
36
|
+
/**
|
37
|
+
* Initializes the `ckbox` editor configuration.
|
38
|
+
*/
|
39
|
+
private _initConfig;
|
40
|
+
/**
|
41
|
+
* Extends the schema to allow the `ckboxImageId` and `ckboxLinkId` attributes for links and images.
|
42
|
+
*/
|
43
|
+
private _initSchema;
|
44
|
+
/**
|
45
|
+
* Configures the upcast and downcast conversions for the `ckboxImageId` and `ckboxLinkId` attributes.
|
46
|
+
*/
|
47
|
+
private _initConversion;
|
48
|
+
/**
|
49
|
+
* Registers post-fixers that add or remove the `ckboxLinkId` and `ckboxImageId` attributes.
|
50
|
+
*/
|
51
|
+
private _initFixers;
|
52
|
+
}
|