You are viewing limited content. For full access, please sign in.

Question

Question

Placeholder Text in a Rich Text Editor

asked on December 17, 2020

Hello All,

 

I have been putting placeholder text in single line fields and multi-line fields.  But now I want to put it in a rich text editor.  Does anyone know the selector to use?

 

Single Line - $("#q1 input").attr("placeholder", "Insert words here");

Multi-Line - $("#q1 textarea").attr("placeholder", "Insert words here");

Rich Text Editor - $("#q1 ???").attr("placeholder", "Insert words here");

 

Any help would be appreciated.

 

Thanks.

 

0 0

Replies

replied on January 12, 2021

I can't answer the question directly, I'm a few versions behind on LFForms and don't have rich text fields yet.  But you should be able to the Inspect Element function of your browser to determine what it is.

If you are in Chrome, it's pretty easy to right-click on the field and choose "Inspect".  You'll see if you do this on a single-line field it'll show as Input, and a multi-line field will show as textarea.  Once you know how those look, you should be able to do the same thing on the rich-text field to see what it says.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.