UploadAdapter (adapter-ckfinder)
@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter
Upload adapter for CKFinder.
Filtering
Properties
-
FileLoader instance to use during the upload.
-
Locale translation method.
-
url : String
Upload URL.
Methods
-
constructor( loader, url, t )
Creates a new adapter instance.
Parameters
loader : FileLoader
url : String
t : Locale#t
-
abort() → Promise
Aborts the upload process.
Returns
Promise
-
upload() → Promise
Starts the upload process.
Returns
Promise
-
_initListeners( resolve, reject )
private
Initializes XMLHttpRequest listeners.
Parameters
resolve : function
Callback function to be called when the request is successful.
reject : function
Callback function to be called when the request cannot be completed.
-
_initRequest()
private
Initializes the XMLHttpRequest object.
-
_sendRequest()
private
Prepares the data and sends the request.