DataTransfer (engine/view)
@ckeditor/ckeditor5-engine/src/view/datatransfer
A facade over the native DataTransfer
object.
Filtering
Properties
-
The actual drop effect.
Parameters
value : String
-
The effect that is allowed for a drag operation.
Parameters
value : String
-
files : Array.<File>
readonly
The array of files created from the native
DataTransfer#files
orDataTransfer#items
. -
Whether the dragging operation was canceled.
-
Returns an array of available native content types.
-
_native : DataTransfer
private
The native DataTransfer object.
Methods
-
getData( type ) → String
Gets the data from the data transfer by its MIME type.
Parameters
type : String
The MIME type. E.g.
text/html
ortext/plain
.
Returns
String
-
setData( type, data )
Sets the data in the data transfer.
Parameters
type : String
The MIME type. E.g.
text/html
ortext/plain
.data : String
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.