Open auniverseaway opened 1 month ago
@auniverseaway do you have a sample page with embedded image data on it?
Actually I was able to create one from https://elmah.io/tools/base64-image-encoder/ and paste the HTML on the doc, and surprisingly it rendered. https://main--charity-da-fun--helms-charity.hlx.page/ Let me know if this isn't the use-case.
@helms-charity while we should externalize all images, it only actually currently fails when the content is larger than 1MB. The easiest way to reproduce it would be to copy a large image from a document in Word/Sharepoint into DA.
As an author pasting content from various sources, I would like any embedded image data (typically base64 encoded) to be replaced with proper image references so that the server does not crash when trying to push the data to
da-collab
.Context
Our current service provider has a hard limit on how much we can push into the collaboration websocket. I believe this is 1MB. We need a ProseMirror plugin to find anything base64 encoded inside the pasted html and re-route that content to proper files that are siblings to the page.
Steps to reproduce
Criteria of acceptance
Other considerations