When the file has been successfully uploaded, the server should return an object containing the resourceUrl key which points to the uploaded file on the server. The progress bar has a button to cancel the file upload process. This upload adapter will show users about the file upload progress with the help of a progress bar. When the file upload process is initiated, in the editor content appears a link with href attribute empty and text link corresponds to the uploaded file name. Use the simpleFileUpload.url configuration option to define the allowed file MIME types that can be uploaded to CKEditor 5.īy default, users are allowed to upload pdf, doc, docx, xls, xlsx documents. When the file upload process starts, the adapter sends a POST request to. The value of the resourceUrl key will be added to the empty href attribute of the previously created link. ![]() An example configuration may look like this: import ArticlePluginSet from from document.The plugin creates a link entity inside editor content with an empty href attribute and when the upload process is completed the server response should contains an resourceUrl key which points to the uploaded file on the server. Except for ImageUpload which is, likewise, available in predefined builds, these need to be added manually.įinally, add CKBox to your plugin list and configure the feature as needed. Please also remember, that the CKBox plugin requires the following dependency plugins to work properly: ArticlePluginSet, PictureEditing, ImageUpload, and CloudServices. If you do not have any of them in your editor, install one and add it to your plugin list. These plugins are, by default, loaded with predefined builds, such as ClassicEditor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |