Enhancement
Critical
Major
Detail
Detail
Currently, images that are copied and pasted into a TL-Doc page are not uploaded correctly. Only 1 to 1 HTML code from the clipboard is pasted into the page. This means that images from external pages still link to external pages and images copied from TL-Doc itself do not work correctly.
Improvement
Instead of just pasting the HTML code, the image is loaded behind the URL and uploaded into the application. Copying images back and forth between TL-Doc pages must work, as long as the original page copied from still exists (e.g., the page must still be open in one tab while pasting the image into another page in another tab). Copying between pages without the original page still being open is not possible.
Test
Copy new images to a TL-Doc page in different ways:
- by drag & drop (also multiple images at the same time)
- by copy from an external page
- by copying from a **still open**, different TL-Doc page
- by pasting a screenshot that is in the clipboard
To check if the error message is displayed correctly in case of an unsuccessful fetch, you should also paste an image whose URL is no longer valid (e.g. copy from a TL-Doc page and close this page before pasting).
After copying, examine the images with the Developer Tools: The corresponding img tags must have a TL-Doc URL in the src attribute. Also, when copying between TL-Doc pages, the src attribute must not have exactly the same URL as the corresponding image on the original page. The best way to test this is to close the tab with the original page and then switch to view and then edit mode again on the page where the image was pasted. If the URLs were identical, the image would now be broken and can no longer be displayed.
The test should also be performed in different browsers.