Overview
Allow users to upload photos directly from the Classic / WYSIWYG editor.
Background
Users should see the standard image uploading experience they expect in our WYSIWYG editor.
Implementation
Prerequisites
On Write.as Web:
- Create an API endpoint that handles uploads, using the Snap.as upload handler
On WriteFreely:
- Complete T550: Image uploading
Design
Add a file input to the Classic / WYSIWYG editor. When a user selects a file, start uploading it, and insert a placeholder into the editor. Once the upload is complete, automatically replace the placeholder with the image, using the final image URL.