Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

RTE

Avatar

Level 3

Hi,

How to add a placeholder in RTE?

Thanks,Screenshot (201).png

Vishal Jain

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi, RTE is not a input element but a div, you can implement custom solution like

https://stackoverflow.com/questions/20726174/placeholder-for-contenteditable-div 

 

form.cq-dialog .cq-dialog-content .cq-RichText-editable[contenteditable=true]:before{
  content: attr(placeholder);
  font-size: 14px;
  color: #254e72;
  font-style: italic;
}
Arun Patidar

AEM LinksLinkedIn

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi, RTE is not a input element but a div, you can implement custom solution like

https://stackoverflow.com/questions/20726174/placeholder-for-contenteditable-div 

 

form.cq-dialog .cq-dialog-content .cq-RichText-editable[contenteditable=true]:before{
  content: attr(placeholder);
  font-size: 14px;
  color: #254e72;
  font-style: italic;
}
Arun Patidar

AEM LinksLinkedIn