-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
da-ueAuthorBus & Universal Editor related stuffAuthorBus & Universal Editor related stuffenhancementNew feature or requestNew feature or request
Description
Currently using images in component templates is cumbersome, like:
"plugins": {
"da": {
"name": "carousel",
"unsafeHTML": "<div><div><div><picture><source type=\"image/webp\" srcset=\"\"><source type=\"image/jpeg\" srcset=\"\"><img loading=\"lazy\"></picture></div><div></div></div>"
}
}
We should support a simple placeholder <picture>
which is replaced by UE with the full picture tag. The configuration would look like:
"plugins": {
"da": {
"name": "carousel",
"unsafeHTML": "<div><div><div><picture></div><div></div></div>"
}
}
The backend can detect the <picture>
tag without any children or extra attributes and expand it with a default template. This way we can stay backward compatible easily.
Metadata
Metadata
Assignees
Labels
da-ueAuthorBus & Universal Editor related stuffAuthorBus & Universal Editor related stuffenhancementNew feature or requestNew feature or request
Type
Projects
Status
No status