I’m sorry, I don’t understand the suggestion. Can you elaborate a bit?
What I’m trying to accomplish is to store images (jpeg, png, gif) as a base64 string, so that the actual image is not stored outside of the editor document but directly saved as a string and thus recreatable.
I’m aware that this requires my own custom base64 conversion, so I’m looking for a suggestion for implementing it and storing that type of node with a similar to the following Content-type.
<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA
9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />
I imagine the simplest way is to grab the url from the editor “Insert image” menu item and convert that and add the content-type. Would the editor render this correctly as an encoded image or is that a wrong approach? Do you (or anybody else) have an example of this?
Thanks for your help.