Keep pasted card images in description drafts
A pasted image arrives while it still loads, so the draft save did not start. A close of the card then cleared the image data from memory. The draft kept the text and a reference to an image that RuneStone never saved. - A second draft file, <card hex>.images.json, keeps the data of the images that only the draft uses. - Only a save of the description or the card writes image files. Save and Cancel empty the draft and its image record, so a discarded draft leaves no image file. - A reopened card restores the images of its draft. The draft saves after a pasted image finishes loading. A card save also writes a cover image that only the draft has. New tests: the pmDraftImages smoke test and the description-draft unit tests. (cherry picked from commit d9653da579bf8cfc0edd2457f72e658c9fe00fd6)
This commit is contained in:
@@ -52,6 +52,7 @@ A card can be on more than one board, with a different list on each board.
|
||||
|
||||
The card details have the title, the labels, and the description in Markdown.
|
||||
A change to the description stays a draft until you select **Save**. **Cancel** restores the saved text. When you close the card with a draft, the card shows an unsaved marker.
|
||||
An image that you paste or drop into a draft stays with the draft. **Save** adds the image to the card. **Cancel** removes it.
|
||||
Board and list changes save at once. Other fields save when you close the card details.
|
||||
|
||||
### Card details
|
||||
|
||||
Reference in New Issue
Block a user