Replies: 2 comments 1 reply
-
That’s the best way to do it for now. We should be able to start injecting |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Any updates on this? CkEditor support source and srcset. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When adding an image with a transform, I typically choose the exact size it will be displayed. For example, if an article body is 700px wide, I add a transform to set the image width to 700px. However, this approach leads to blurriness on high-density displays, such as those on MacBooks.
Is there a way to support responsive images via CKEditor?
Currently, the output looks like this:
Now the output is
I aim to support 2x displays, so ideally, the output should resemble:
I could use a transform for 1400px, but this would load the larger image on every screen, which is not ideal, especially on mobile devices.
In the meantime, I'm adding images via a nested Entry so I can control the Twig output and apply the desired transforms.
Beta Was this translation helpful? Give feedback.
All reactions