adobe / adobe/da-universal

Simplify using images in component templates

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
da-ue enhancement
Dominant language
JavaScript
Stars
2
Forks
3
Avg merge
18h
Merged PRs (30d)
15

Description

Currently using images in component templates is cumbersome, like:

```
"plugins": {
"da": {
"name": "carousel",
"unsafeHTML": "

"
}
}
````

We should support a simple placeholder `` which is replaced by UE with the full picture tag. The configuration would look like:

```
"plugins": {
"da": {
"name": "carousel",
"unsafeHTML": "

"
}
}
````
The backend can detect the `` tag without any children or extra attributes and expand it with a default template. This way we can stay backward compatible easily.

Contributor guide

Open the contributing guide

Research direction

Start by locating the backend handling for component templates and unsafeHTML, then trace how picture tags are currently processed. Confirm that a childless picture placeholder expands to the default picture markup while the existing full markup remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.