Forum Discussion

Claudius's avatar
9 years ago

Adding a placeholder text to the rich text editor

In order to provide some guidance for community members on their first post we would like to add a placeholder to the editor field. I've seen that the HP Community are doing it:   I roug...
  • lilim's avatar
    lilim
    9 years ago

    You can use the text key form.MessageEditor.field.body.placeholder to change the placeholder text that appears in each text editor.

     

  • fuenteso's avatar
    9 years ago

    Hi Claudius,

     

    We used this text key: form.MessageEditor.field.body.placeholder

     

    Usually, when I need to figure out which text key is used on any part of the community I open studio on a new window, then go to Text Editor > Advanced and click on "Show text keys", then just go to the community page you were checking and refresh it. All the text keys used should be showing, even if they're empty.

     

     

     

    When I'm done I just go back to the Studio tab and click on "Hide text keys". I use two different tabs because navigating through the community or Studio could be a little tricky when the text keys are showing.

     

    Hope that helps!