How to add placeholder in Rich Text 3.3.1

0
Hi All,   Could you kindly guid/suggest me how I can add a place holder in Rich Text 3.3.1 (as highlighted in yellow) ? Looking for an advice. Thanks in advance    
asked
2 answers
1

Hi Prakash Patwa

 

You can refer to Dynamic Tabs and sections using rich text" to get more ideas on how to handle Rich Text Editor 3.3.1.

 

I hope this will help you :)

answered
1

Hi Prakash,

 

You can override :before class from scss. This will help you to show the placeholder.

 

Scss code:

.ql-editor.ql-blank:before {

content: "Placeholder text write here" !important;

}

 

Add this code in your scss file, replace content text but keep !important. I have added this in main.scss 

 

Here is the result:

result.png

 

Thanks,

Mobin

answered