Features like image upload use the FileRepository API to create a new upload adapter instance each time an upload is requested by the user.Ī top–level plugin that responds to actions of the users (e.g.Upload adapters are enabled in the editor by defining the FileRepository.createUploadAdapter() factory method.It glues upload adapters and features using them: See "The anatomy of the adapter" section to learn more.Ī central point for managing file upload in CKEditor 5. In other words, it tells you what methods your upload adapter class must have in order to work. See the "How does the image upload work?" section to learn more.Īn interface defining the minimal API required to create an upload adapter. when a file is dropped into the content), a new upload adapter instance is created.ĬKEditor 5 comes with some official upload adapters but you can also implement your own adapters. Upload adapters are used by other plugins like image upload to connect to the server and fetch the response. A bridge between the feature and the server. when the file is dropped into the content) to the moment the server returns a response to the requested upload. TermĪ piece of code (a class) that handles the image upload from the moment it is requested by the user (e.g. # Glossary of termsīefore we start, let’s make sure all terms used in this guide are clear. Check out the comprehensive Image upload overview to learn about other ways to upload images into CKEditor 5.
0 Comments
Leave a Reply. |