@ckeditor/ckeditor5-clipboard 39.0.1 → 40.0.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/CHANGELOG.md +1 -1
- package/LICENSE.md +1 -1
- package/README.md +3 -3
- package/package.json +6 -10
- package/src/augmentation.d.ts +15 -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 +260 -221
- package/src/clipboardpipeline.js +266 -245
- package/src/dragdrop.d.ts +102 -100
- package/src/dragdrop.js +577 -655
- package/src/dragdropblocktoolbar.d.ts +47 -47
- package/src/dragdropblocktoolbar.js +121 -114
- package/src/dragdroptarget.d.ts +94 -94
- package/src/dragdroptarget.js +363 -362
- package/src/index.d.ts +16 -17
- package/src/index.js +14 -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/src/dragdropexperimental.d.ts +0 -101
- package/src/dragdropexperimental.js +0 -522
package/CHANGELOG.md
CHANGED
|
@@ -107,7 +107,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
107
107
|
|
|
108
108
|
### BREAKING CHANGES
|
|
109
109
|
|
|
110
|
-
* The license under which CKEditor
|
|
110
|
+
* 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.
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
## [1.0.0-beta.4](https://github.com/ckeditor/ckeditor5-clipboard/compare/v1.0.0-beta.2...v1.0.0-beta.4) (2018-04-19)
|
package/LICENSE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Software License Agreement
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
|
-
**CKEditor
|
|
4
|
+
**CKEditor 5 clipboard feature** – https://github.com/ckeditor/ckeditor5-clipboard <br>
|
|
5
5
|
Copyright (c) 2003-2023, [CKSource Holding sp. z o.o.](https://cksource.com) 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,15 +1,15 @@
|
|
|
1
|
-
CKEditor
|
|
1
|
+
CKEditor 5 clipboard feature
|
|
2
2
|
========================================
|
|
3
3
|
|
|
4
4
|
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-clipboard)
|
|
5
5
|
[](https://coveralls.io/github/ckeditor/ckeditor5?branch=master)
|
|
6
6
|
[](https://app.travis-ci.com/github/ckeditor/ckeditor5)
|
|
7
7
|
|
|
8
|
-
This package implements the clipboard (copy, cut, paste) support for CKEditor
|
|
8
|
+
This package implements the clipboard (copy, cut, paste) support for CKEditor 5.
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
12
|
-
See the [`@ckeditor/ckeditor5-clipboard` package](https://ckeditor.com/docs/ckeditor5/latest/api/clipboard.html) page in [CKEditor
|
|
12
|
+
See the [`@ckeditor/ckeditor5-clipboard` package](https://ckeditor.com/docs/ckeditor5/latest/api/clipboard.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
|
|
13
13
|
|
|
14
14
|
## License
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-clipboard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "40.0.0",
|
|
4
4
|
"description": "Clipboard integration feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,17 +12,13 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-core": "
|
|
16
|
-
"@ckeditor/ckeditor5-engine": "
|
|
17
|
-
"@ckeditor/ckeditor5-ui": "
|
|
18
|
-
"@ckeditor/ckeditor5-utils": "
|
|
19
|
-
"@ckeditor/ckeditor5-widget": "
|
|
15
|
+
"@ckeditor/ckeditor5-core": "40.0.0",
|
|
16
|
+
"@ckeditor/ckeditor5-engine": "40.0.0",
|
|
17
|
+
"@ckeditor/ckeditor5-ui": "40.0.0",
|
|
18
|
+
"@ckeditor/ckeditor5-utils": "40.0.0",
|
|
19
|
+
"@ckeditor/ckeditor5-widget": "40.0.0",
|
|
20
20
|
"lodash-es": "4.17.21"
|
|
21
21
|
},
|
|
22
|
-
"engines": {
|
|
23
|
-
"node": ">=16.0.0",
|
|
24
|
-
"npm": ">=5.7.1"
|
|
25
|
-
},
|
|
26
22
|
"author": "CKSource (http://cksource.com/)",
|
|
27
23
|
"license": "GPL-2.0-or-later",
|
|
28
24
|
"homepage": "https://ckeditor.com/ckeditor-5",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
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,
|
|
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
|
-
[
|
|
13
|
-
[
|
|
14
|
-
|
|
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, 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
|
+
[DragDropTarget.pluginName]: DragDropTarget;
|
|
13
|
+
[DragDropBlockToolbar.pluginName]: DragDropBlockToolbar;
|
|
14
|
+
}
|
|
15
|
+
}
|
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';
|
|
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
|
+
}
|
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';
|
|
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
|
+
}
|