@ckeditor/ckeditor5-clipboard 38.1.1 → 38.2.0-alpha.1
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 +7 -6
- package/src/augmentation.d.ts +16 -16
- package/src/augmentation.js +5 -5
- package/src/clipboard.d.ts +31 -31
- package/src/clipboard.js +35 -35
- package/src/clipboardobserver.d.ts +312 -312
- package/src/clipboardobserver.js +94 -94
- package/src/clipboardpipeline.d.ts +221 -221
- package/src/clipboardpipeline.js +245 -245
- package/src/dragdrop.d.ts +100 -100
- package/src/dragdrop.js +655 -655
- package/src/dragdropblocktoolbar.d.ts +47 -47
- package/src/dragdropblocktoolbar.js +114 -114
- package/src/dragdropexperimental.d.ts +101 -101
- package/src/dragdropexperimental.js +522 -522
- package/src/dragdroptarget.d.ts +94 -94
- package/src/dragdroptarget.js +362 -362
- package/src/index.d.ts +17 -17
- package/src/index.js +15 -15
- package/src/lineview.d.ts +45 -45
- package/src/lineview.js +44 -44
- package/src/pasteplaintext.d.ts +28 -28
- package/src/pasteplaintext.js +82 -82
- package/src/utils/normalizeclipboarddata.d.ts +15 -15
- package/src/utils/normalizeclipboarddata.js +27 -27
- package/src/utils/plaintexttohtml.d.ts +14 -14
- package/src/utils/plaintexttohtml.js +37 -37
- package/src/utils/viewtoplaintext.d.ts +15 -15
- package/src/utils/viewtoplaintext.js +50 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-clipboard",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.2.0-alpha.1",
|
|
4
4
|
"description": "Clipboard integration feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
"ckeditor5-dll"
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
|
+
"type": "module",
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-core": "38.
|
|
16
|
-
"@ckeditor/ckeditor5-engine": "38.
|
|
17
|
-
"@ckeditor/ckeditor5-ui": "38.
|
|
18
|
-
"@ckeditor/ckeditor5-utils": "38.
|
|
19
|
-
"@ckeditor/ckeditor5-widget": "38.
|
|
16
|
+
"@ckeditor/ckeditor5-core": "38.2.0-alpha.1",
|
|
17
|
+
"@ckeditor/ckeditor5-engine": "38.2.0-alpha.1",
|
|
18
|
+
"@ckeditor/ckeditor5-ui": "38.2.0-alpha.1",
|
|
19
|
+
"@ckeditor/ckeditor5-utils": "38.2.0-alpha.1",
|
|
20
|
+
"@ckeditor/ckeditor5-widget": "38.2.0-alpha.1",
|
|
20
21
|
"lodash-es": "^4.17.15"
|
|
21
22
|
},
|
|
22
23
|
"engines": {
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
import type { Clipboard, ClipboardPipeline, PastePlainText, DragDrop, DragDropExperimental, DragDropTarget, DragDropBlockToolbar } from './index';
|
|
6
|
-
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
-
interface PluginsMap {
|
|
8
|
-
[Clipboard.pluginName]: Clipboard;
|
|
9
|
-
[ClipboardPipeline.pluginName]: ClipboardPipeline;
|
|
10
|
-
[PastePlainText.pluginName]: PastePlainText;
|
|
11
|
-
[DragDrop.pluginName]: DragDrop;
|
|
12
|
-
[DragDropExperimental.pluginName]: DragDropExperimental;
|
|
13
|
-
[DragDropTarget.pluginName]: DragDropTarget;
|
|
14
|
-
[DragDropBlockToolbar.pluginName]: DragDropBlockToolbar;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
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
|
+
import type { Clipboard, ClipboardPipeline, PastePlainText, DragDrop, DragDropExperimental, DragDropTarget, DragDropBlockToolbar } from './index.js';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[Clipboard.pluginName]: Clipboard;
|
|
9
|
+
[ClipboardPipeline.pluginName]: ClipboardPipeline;
|
|
10
|
+
[PastePlainText.pluginName]: PastePlainText;
|
|
11
|
+
[DragDrop.pluginName]: DragDrop;
|
|
12
|
+
[DragDropExperimental.pluginName]: DragDropExperimental;
|
|
13
|
+
[DragDropTarget.pluginName]: DragDropTarget;
|
|
14
|
+
[DragDropBlockToolbar.pluginName]: DragDropBlockToolbar;
|
|
15
|
+
}
|
|
16
|
+
}
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export {};
|
|
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
|
+
export {};
|
package/src/clipboard.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
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 clipboard/clipboard
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
-
import ClipboardPipeline from './clipboardpipeline';
|
|
10
|
-
import DragDrop from './dragdrop';
|
|
11
|
-
import PastePlainText from './pasteplaintext';
|
|
12
|
-
/**
|
|
13
|
-
* The clipboard feature.
|
|
14
|
-
*
|
|
15
|
-
* Read more about the clipboard integration in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
16
|
-
*
|
|
17
|
-
* This is a "glue" plugin which loads the following plugins:
|
|
18
|
-
* * {@link module:clipboard/clipboardpipeline~ClipboardPipeline}
|
|
19
|
-
* * {@link module:clipboard/dragdrop~DragDrop}
|
|
20
|
-
* * {@link module:clipboard/pasteplaintext~PastePlainText}
|
|
21
|
-
*/
|
|
22
|
-
export default class Clipboard extends Plugin {
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get pluginName(): "Clipboard";
|
|
27
|
-
/**
|
|
28
|
-
* @inheritDoc
|
|
29
|
-
*/
|
|
30
|
-
static get requires(): readonly [typeof ClipboardPipeline, typeof DragDrop, typeof PastePlainText];
|
|
31
|
-
}
|
|
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 clipboard/clipboard
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import ClipboardPipeline from './clipboardpipeline.js';
|
|
10
|
+
import DragDrop from './dragdrop.js';
|
|
11
|
+
import PastePlainText from './pasteplaintext.js';
|
|
12
|
+
/**
|
|
13
|
+
* The clipboard feature.
|
|
14
|
+
*
|
|
15
|
+
* Read more about the clipboard integration in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
16
|
+
*
|
|
17
|
+
* This is a "glue" plugin which loads the following plugins:
|
|
18
|
+
* * {@link module:clipboard/clipboardpipeline~ClipboardPipeline}
|
|
19
|
+
* * {@link module:clipboard/dragdrop~DragDrop}
|
|
20
|
+
* * {@link module:clipboard/pasteplaintext~PastePlainText}
|
|
21
|
+
*/
|
|
22
|
+
export default class Clipboard extends Plugin {
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName(): "Clipboard";
|
|
27
|
+
/**
|
|
28
|
+
* @inheritDoc
|
|
29
|
+
*/
|
|
30
|
+
static get requires(): readonly [typeof ClipboardPipeline, typeof DragDrop, typeof PastePlainText];
|
|
31
|
+
}
|
package/src/clipboard.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
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 clipboard/clipboard
|
|
7
|
-
*/
|
|
8
|
-
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
-
import ClipboardPipeline from './clipboardpipeline';
|
|
10
|
-
import DragDrop from './dragdrop';
|
|
11
|
-
import PastePlainText from './pasteplaintext';
|
|
12
|
-
/**
|
|
13
|
-
* The clipboard feature.
|
|
14
|
-
*
|
|
15
|
-
* Read more about the clipboard integration in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
16
|
-
*
|
|
17
|
-
* This is a "glue" plugin which loads the following plugins:
|
|
18
|
-
* * {@link module:clipboard/clipboardpipeline~ClipboardPipeline}
|
|
19
|
-
* * {@link module:clipboard/dragdrop~DragDrop}
|
|
20
|
-
* * {@link module:clipboard/pasteplaintext~PastePlainText}
|
|
21
|
-
*/
|
|
22
|
-
export default class Clipboard extends Plugin {
|
|
23
|
-
/**
|
|
24
|
-
* @inheritDoc
|
|
25
|
-
*/
|
|
26
|
-
static get pluginName() {
|
|
27
|
-
return 'Clipboard';
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
static get requires() {
|
|
33
|
-
return [ClipboardPipeline, DragDrop, PastePlainText];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
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 clipboard/clipboard
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import ClipboardPipeline from './clipboardpipeline.js';
|
|
10
|
+
import DragDrop from './dragdrop.js';
|
|
11
|
+
import PastePlainText from './pasteplaintext.js';
|
|
12
|
+
/**
|
|
13
|
+
* The clipboard feature.
|
|
14
|
+
*
|
|
15
|
+
* Read more about the clipboard integration in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
16
|
+
*
|
|
17
|
+
* This is a "glue" plugin which loads the following plugins:
|
|
18
|
+
* * {@link module:clipboard/clipboardpipeline~ClipboardPipeline}
|
|
19
|
+
* * {@link module:clipboard/dragdrop~DragDrop}
|
|
20
|
+
* * {@link module:clipboard/pasteplaintext~PastePlainText}
|
|
21
|
+
*/
|
|
22
|
+
export default class Clipboard extends Plugin {
|
|
23
|
+
/**
|
|
24
|
+
* @inheritDoc
|
|
25
|
+
*/
|
|
26
|
+
static get pluginName() {
|
|
27
|
+
return 'Clipboard';
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @inheritDoc
|
|
31
|
+
*/
|
|
32
|
+
static get requires() {
|
|
33
|
+
return [ClipboardPipeline, DragDrop, PastePlainText];
|
|
34
|
+
}
|
|
35
|
+
}
|