@ckeditor/ckeditor5-clipboard 48.2.0 → 48.3.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/dist/augmentation.d.ts +14 -14
- package/dist/clipboard.d.ts +35 -35
- package/dist/clipboardmarkersutils.d.ts +194 -194
- package/dist/clipboardobserver.d.ts +274 -274
- package/dist/clipboardpipeline.d.ts +252 -252
- package/dist/dragdrop.d.ts +101 -101
- package/dist/dragdropblocktoolbar.d.ts +46 -46
- package/dist/dragdroptarget.d.ts +95 -94
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +21 -21
- package/dist/index.js +1706 -2182
- package/dist/index.js.map +1 -1
- package/dist/lineview.d.ts +42 -42
- package/dist/pasteplaintext.d.ts +27 -27
- package/dist/utils/normalizeclipboarddata.d.ts +12 -12
- package/dist/utils/plaintexttohtml.d.ts +10 -10
- package/dist/utils/viewtoplaintext.d.ts +12 -12
- package/package.json +6 -6
|
@@ -1,281 +1,281 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin } from
|
|
9
|
-
import type { ViewDataTransfer, ModelDocumentFragment, ModelRange, ViewDocumentFragment, ViewRange, ModelSelection, ModelDocumentSelection } from
|
|
10
|
-
import { ClipboardMarkersUtils } from
|
|
6
|
+
* @module clipboard/clipboardpipeline
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import type { ViewDataTransfer, ModelDocumentFragment, ModelRange, ViewDocumentFragment, ViewRange, ModelSelection, ModelDocumentSelection } from "@ckeditor/ckeditor5-engine";
|
|
10
|
+
import { ClipboardMarkersUtils } from "./clipboardmarkersutils.js";
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
12
|
+
* The clipboard pipeline feature. It is responsible for intercepting the `paste` and `drop` events and
|
|
13
|
+
* passing the pasted content through a series of events in order to insert it into the editor's content.
|
|
14
|
+
* It also handles the `cut` and `copy` events to fill the native clipboard with the serialized editor's data.
|
|
15
|
+
*
|
|
16
|
+
* # Input pipeline
|
|
17
|
+
*
|
|
18
|
+
* The behavior of the default handlers (all at a `low` priority):
|
|
19
|
+
*
|
|
20
|
+
* ## Event: `paste` or `drop`
|
|
21
|
+
*
|
|
22
|
+
* 1. Translates the event data.
|
|
23
|
+
* 2. Fires the {@link module:engine/view/document~ViewDocument#event:clipboardInput `view.Document#clipboardInput`} event.
|
|
24
|
+
*
|
|
25
|
+
* ## Event: `view.Document#clipboardInput`
|
|
26
|
+
*
|
|
27
|
+
* 1. If the `data.content` event field is already set (by some listener on a higher priority), it takes this content and fires the event
|
|
28
|
+
* from the last point.
|
|
29
|
+
* 2. Otherwise, it retrieves `text/html` or `text/plain` from `data.dataTransfer`.
|
|
30
|
+
* 3. Normalizes the raw data by applying simple filters on string data.
|
|
31
|
+
* 4. Processes the raw data to {@link module:engine/view/documentfragment~ViewDocumentFragment `view.DocumentFragment`} with the
|
|
32
|
+
* {@link module:engine/controller/datacontroller~DataController#htmlProcessor `DataController#htmlProcessor`}.
|
|
33
|
+
* 5. Fires the {@link module:clipboard/clipboardpipeline~ClipboardPipeline#event:inputTransformation
|
|
34
|
+
* `ClipboardPipeline#inputTransformation`} event with the view document fragment in the `data.content` event field.
|
|
35
|
+
*
|
|
36
|
+
* ## Event: `ClipboardPipeline#inputTransformation`
|
|
37
|
+
*
|
|
38
|
+
* 1. Converts {@link module:engine/view/documentfragment~ViewDocumentFragment `view.DocumentFragment`} from the `data.content` field to
|
|
39
|
+
* {@link module:engine/model/documentfragment~ModelDocumentFragment `model.DocumentFragment`}.
|
|
40
|
+
* 2. Fires the {@link module:clipboard/clipboardpipeline~ClipboardPipeline#event:contentInsertion `ClipboardPipeline#contentInsertion`}
|
|
41
|
+
* event with the model document fragment in the `data.content` event field.
|
|
42
|
+
* **Note**: The `ClipboardPipeline#contentInsertion` event is fired within a model change block to allow other handlers
|
|
43
|
+
* to run in the same block without post-fixers called in between (i.e., the selection post-fixer).
|
|
44
|
+
*
|
|
45
|
+
* ## Event: `ClipboardPipeline#contentInsertion`
|
|
46
|
+
*
|
|
47
|
+
* 1. Calls {@link module:engine/model/model~Model#insertContent `model.insertContent()`} to insert `data.content`
|
|
48
|
+
* at the current selection position.
|
|
49
|
+
*
|
|
50
|
+
* # Output pipeline
|
|
51
|
+
*
|
|
52
|
+
* The behavior of the default handlers (all at a `low` priority):
|
|
53
|
+
*
|
|
54
|
+
* ## Event: `copy`, `cut` or `dragstart`
|
|
55
|
+
*
|
|
56
|
+
* 1. Retrieves the selected {@link module:engine/model/documentfragment~ModelDocumentFragment `model.DocumentFragment`} by calling
|
|
57
|
+
* {@link module:engine/model/model~Model#getSelectedContent `model#getSelectedContent()`}.
|
|
58
|
+
* 2. Converts the model document fragment to {@link module:engine/view/documentfragment~ViewDocumentFragment `view.DocumentFragment`}.
|
|
59
|
+
* 3. Fires the {@link module:engine/view/document~ViewDocument#event:clipboardOutput `view.Document#clipboardOutput`} event
|
|
60
|
+
* with the view document fragment in the `data.content` event field.
|
|
61
|
+
*
|
|
62
|
+
* ## Event: `view.Document#clipboardOutput`
|
|
63
|
+
*
|
|
64
|
+
* 1. Processes `data.content` to HTML and plain text with the
|
|
65
|
+
* {@link module:engine/controller/datacontroller~DataController#htmlProcessor `DataController#htmlProcessor`}.
|
|
66
|
+
* 2. Updates the `data.dataTransfer` data for `text/html` and `text/plain` with the processed data.
|
|
67
|
+
* 3. For the `cut` method, calls {@link module:engine/model/model~Model#deleteContent `model.deleteContent()`}
|
|
68
|
+
* on the current selection.
|
|
69
|
+
*
|
|
70
|
+
* Read more about the clipboard integration in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
71
|
+
*/
|
|
72
72
|
export declare class ClipboardPipeline extends Plugin {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
73
|
+
/**
|
|
74
|
+
* @inheritDoc
|
|
75
|
+
*/
|
|
76
|
+
static get pluginName(): "ClipboardPipeline";
|
|
77
|
+
/**
|
|
78
|
+
* @inheritDoc
|
|
79
|
+
*/
|
|
80
|
+
static override get isOfficialPlugin(): true;
|
|
81
|
+
/**
|
|
82
|
+
* @inheritDoc
|
|
83
|
+
*/
|
|
84
|
+
static get requires(): PluginDependenciesOf<[ClipboardMarkersUtils]>;
|
|
85
|
+
/**
|
|
86
|
+
* @inheritDoc
|
|
87
|
+
*/
|
|
88
|
+
init(): void;
|
|
89
|
+
/**
|
|
90
|
+
* Fires Clipboard `'outputTransformation'` event for given parameters.
|
|
91
|
+
*
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
_fireOutputTransformationEvent(dataTransfer: ViewDataTransfer, selection: ModelSelection | ModelDocumentSelection, method: "copy" | "cut" | "dragstart"): void;
|
|
95
|
+
/**
|
|
96
|
+
* The clipboard paste pipeline.
|
|
97
|
+
*/
|
|
98
|
+
private _setupPasteDrop;
|
|
99
|
+
/**
|
|
100
|
+
* The clipboard copy/cut pipeline.
|
|
101
|
+
*/
|
|
102
|
+
private _setupCopyCut;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
105
|
+
* Fired with the `content`, `dataTransfer`, `method`, and `targetRanges` properties:
|
|
106
|
+
*
|
|
107
|
+
* * The `content` which comes from the clipboard (it was pasted or dropped) should be processed in order to be inserted into the editor.
|
|
108
|
+
* * The `dataTransfer` object is available in case the transformation functions need access to the raw clipboard data.
|
|
109
|
+
* * The `method` indicates the original DOM event (for example `'drop'` or `'paste'`).
|
|
110
|
+
* * The `targetRanges` property is an array of view ranges (it is available only for `'drop'`).
|
|
111
|
+
*
|
|
112
|
+
* It is a part of the {@glink framework/deep-dive/clipboard#input-pipeline clipboard input pipeline}.
|
|
113
|
+
*
|
|
114
|
+
* **Note**: You should not stop this event if you want to change the input data. You should modify the `content` property instead.
|
|
115
|
+
*
|
|
116
|
+
* @see module:clipboard/clipboardobserver~ClipboardObserver
|
|
117
|
+
* @see module:clipboard/clipboardpipeline~ClipboardPipeline
|
|
118
|
+
*
|
|
119
|
+
* @eventName ~ClipboardPipeline#inputTransformation
|
|
120
|
+
* @param data The event data.
|
|
121
|
+
*/
|
|
122
122
|
export type ClipboardInputTransformationEvent = {
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
name: "inputTransformation";
|
|
124
|
+
args: [data: ClipboardInputTransformationData];
|
|
125
125
|
};
|
|
126
126
|
/**
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
* The data of 'inputTransformation' event.
|
|
128
|
+
*/
|
|
129
129
|
export interface ClipboardInputTransformationData {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
130
|
+
/**
|
|
131
|
+
* The event data.
|
|
132
|
+
* The content to be inserted into the editor. It can be modified by event listeners. Read more about the clipboard pipelines in
|
|
133
|
+
* the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
134
|
+
*/
|
|
135
|
+
content: ViewDocumentFragment;
|
|
136
|
+
/**
|
|
137
|
+
* Custom data stored by the `clipboardInput` event handlers. Content of this property is passed from the `clipboardInput` event.
|
|
138
|
+
*/
|
|
139
|
+
extraContent?: unknown;
|
|
140
|
+
/**
|
|
141
|
+
* The data transfer instance.
|
|
142
|
+
*/
|
|
143
|
+
dataTransfer: ViewDataTransfer;
|
|
144
|
+
/**
|
|
145
|
+
* The target drop ranges.
|
|
146
|
+
*/
|
|
147
|
+
targetRanges: Array<ViewRange> | null;
|
|
148
|
+
/**
|
|
149
|
+
* Whether the event was triggered by a paste or a drop operation.
|
|
150
|
+
*/
|
|
151
|
+
method: "paste" | "drop";
|
|
152
|
+
/**
|
|
153
|
+
* ID of the editor instance from which the content was copied.
|
|
154
|
+
*/
|
|
155
|
+
sourceEditorId: string | null;
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
158
|
+
* Fired with the `content`, `dataTransfer`, `method`, and `targetRanges` properties:
|
|
159
|
+
*
|
|
160
|
+
* * The `content` which comes from the clipboard (was pasted or dropped) should be processed in order to be inserted into the editor.
|
|
161
|
+
* * The `dataTransfer` object is available in case the transformation functions need access to the raw clipboard data.
|
|
162
|
+
* * The `method` indicates the original DOM event (for example `'drop'` or `'paste'`).
|
|
163
|
+
* * The `targetRanges` property is an array of view ranges (it is available only for `'drop'`).
|
|
164
|
+
*
|
|
165
|
+
* Event handlers can modify the content according to the final insertion position.
|
|
166
|
+
*
|
|
167
|
+
* It is a part of the {@glink framework/deep-dive/clipboard#input-pipeline clipboard input pipeline}.
|
|
168
|
+
*
|
|
169
|
+
* **Note**: You should not stop this event if you want to change the input data. You should modify the `content` property instead.
|
|
170
|
+
*
|
|
171
|
+
* @see module:clipboard/clipboardobserver~ClipboardObserver
|
|
172
|
+
* @see module:clipboard/clipboardpipeline~ClipboardPipeline
|
|
173
|
+
* @see module:clipboard/clipboardpipeline~ClipboardPipeline#event:inputTransformation
|
|
174
|
+
*
|
|
175
|
+
* @eventName ~ClipboardPipeline#contentInsertion
|
|
176
|
+
* @param data The event data.
|
|
177
|
+
*/
|
|
178
178
|
export type ClipboardContentInsertionEvent = {
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
name: "contentInsertion";
|
|
180
|
+
args: [data: ClipboardContentInsertionData];
|
|
181
181
|
};
|
|
182
182
|
/**
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
* The data of 'contentInsertion' event.
|
|
184
|
+
*/
|
|
185
185
|
export interface ClipboardContentInsertionData {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
186
|
+
/**
|
|
187
|
+
* The content to be inserted into the editor.
|
|
188
|
+
* Read more about the clipboard pipelines in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
189
|
+
*/
|
|
190
|
+
content: ModelDocumentFragment;
|
|
191
|
+
/**
|
|
192
|
+
* Whether the event was triggered by a paste or a drop operation.
|
|
193
|
+
*/
|
|
194
|
+
method: "paste" | "drop";
|
|
195
|
+
/**
|
|
196
|
+
* The ID of the editor instance from which the content was copied.
|
|
197
|
+
*/
|
|
198
|
+
sourceEditorId: string | null;
|
|
199
|
+
/**
|
|
200
|
+
* The data transfer instance.
|
|
201
|
+
*/
|
|
202
|
+
dataTransfer: ViewDataTransfer;
|
|
203
|
+
/**
|
|
204
|
+
* The target drop ranges.
|
|
205
|
+
*/
|
|
206
|
+
targetRanges: Array<ViewRange> | null;
|
|
207
|
+
/**
|
|
208
|
+
* The result of the `model.insertContent()` call
|
|
209
|
+
* (inserted by the event handler at a low priority).
|
|
210
|
+
*/
|
|
211
|
+
resultRange?: ModelRange;
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
214
|
+
* Fired on {@link module:engine/view/document~ViewDocument#event:copy} and {@link module:engine/view/document~ViewDocument#event:cut}
|
|
215
|
+
* with a copy of the selected content. The content can be processed before it ends up in the clipboard.
|
|
216
|
+
*
|
|
217
|
+
* It is a part of the {@glink framework/deep-dive/clipboard#output-pipeline clipboard output pipeline}.
|
|
218
|
+
*
|
|
219
|
+
* @see module:clipboard/clipboardobserver~ClipboardObserver
|
|
220
|
+
* @see module:clipboard/clipboardpipeline~ClipboardPipeline
|
|
221
|
+
*
|
|
222
|
+
* @eventName module:engine/view/document~ViewDocument#clipboardOutput
|
|
223
|
+
* @param data The event data.
|
|
224
|
+
*/
|
|
225
225
|
export type ViewDocumentClipboardOutputEvent = {
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
name: "clipboardOutput";
|
|
227
|
+
args: [data: ViewDocumentClipboardOutputEventData];
|
|
228
228
|
};
|
|
229
229
|
/**
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
* The value of the 'clipboardOutput' event.
|
|
231
|
+
*/
|
|
232
232
|
export interface ViewDocumentClipboardOutputEventData {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
233
|
+
/**
|
|
234
|
+
* The data transfer instance.
|
|
235
|
+
*
|
|
236
|
+
* @readonly
|
|
237
|
+
*/
|
|
238
|
+
dataTransfer: ViewDataTransfer;
|
|
239
|
+
/**
|
|
240
|
+
* Content to be put into the clipboard. It can be modified by the event listeners.
|
|
241
|
+
* Read more about the clipboard pipelines in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
242
|
+
*/
|
|
243
|
+
content: ViewDocumentFragment;
|
|
244
|
+
/**
|
|
245
|
+
* Whether the event was triggered by a copy or cut operation.
|
|
246
|
+
*/
|
|
247
|
+
method: "copy" | "cut" | "dragstart";
|
|
248
248
|
}
|
|
249
249
|
/**
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
250
|
+
* Fired on {@link module:engine/view/document~ViewDocument#event:copy}, {@link module:engine/view/document~ViewDocument#event:cut}
|
|
251
|
+
* and {@link module:engine/view/document~ViewDocument#event:dragstart}. The content can be processed before it ends up in the clipboard.
|
|
252
|
+
*
|
|
253
|
+
* It is a part of the {@glink framework/deep-dive/clipboard#output-pipeline clipboard output pipeline}.
|
|
254
|
+
*
|
|
255
|
+
* @eventName ~ClipboardPipeline#outputTransformation
|
|
256
|
+
* @param data The event data.
|
|
257
|
+
*/
|
|
258
258
|
export type ClipboardOutputTransformationEvent = {
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
name: "outputTransformation";
|
|
260
|
+
args: [data: ClipboardOutputTransformationData];
|
|
261
261
|
};
|
|
262
262
|
/**
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
* The value of the 'outputTransformation' event.
|
|
264
|
+
*/
|
|
265
265
|
export interface ClipboardOutputTransformationData {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
266
|
+
/**
|
|
267
|
+
* The data transfer instance.
|
|
268
|
+
*
|
|
269
|
+
* @readonly
|
|
270
|
+
*/
|
|
271
|
+
dataTransfer: ViewDataTransfer;
|
|
272
|
+
/**
|
|
273
|
+
* Content to be put into the clipboard. It can be modified by the event listeners.
|
|
274
|
+
* Read more about the clipboard pipelines in the {@glink framework/deep-dive/clipboard clipboard deep-dive} guide.
|
|
275
|
+
*/
|
|
276
|
+
content: ModelDocumentFragment;
|
|
277
|
+
/**
|
|
278
|
+
* Whether the event was triggered by a copy or cut operation.
|
|
279
|
+
*/
|
|
280
|
+
method: "copy" | "cut" | "dragstart";
|
|
281
281
|
}
|