Posted on 06/01/2022 14:29:24
Hej Tina
Generally you should never insert images directly in the rich text editor. When you insert images in the image fields of the different content item types, the swift implementation is able to handle how the image look like in large displays all the way down to mobile devices and at the same time ensure that the image is optimized for performance.
When you insert images in the editor, you will potentially run into issues in smaller devices etc.
Currently it is not possible to select an image from the filemanager using the RTE (for the above reasons).
When you select an image inline from your pc it is embedded as base64 inside the editor markup (you can see that if you view the source) - example below. It works, but the image is not optimized and resized correctly and can easily cause performance problems if the editor inserts i.e. a photo from their camera which can be 4mb+ in size.
I am pretty sure you can achieve what you want by using one of the content item types available - otherwise we might be able to add that as a request to Swift.
Can you show what you are trying to achieve visually - then we might be able to guide you.
How the image data is embeded in the rich text editor