typewriter-editor / typewriter

A rich text editor based off of Quill.js and Ultradom, and using Svelte for UI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image upload

scarroll32 opened this issue · comments

commented

Embed image in document, use a method similar to how Markdown editors do it: store the image in a backend and embed a link within the document meta, then render when seen.

This is a server-specific item. Perhaps we can help with a module that handles drag-drop and triggers a callback which may be used by an implementation to upload the image. It could provide an error reporting API and a progress API. Then the module could insert the image immediately with local information at 50% opacity and as the upload progresses the image transitions to full opacity starting at the left and working across to the right (so that when it is 75% uploaded, the left 3/4s will be 100% opaque and the remaining 50%). Or some other progress indicator within the editor.

We should also provide some features and UI to manage images within the document. Float left, float right, center, etc. At least show how one might do this themselves.