RTE | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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; }

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
June 10, 2022

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