Add labels to a text block in the editor (*so it does'nt look empty)

Hi,

I have a text block that has some shortcodes in, plus a component shortcode.

The code works and does what I need.

The code output is not displayed in the editor, which is fine. But as the text block looks on first inspection like it is a redundant text block, (with the empty state of a text block)… unless you investigate further. I’d like to mark that it is active so it is not accidentally deleted in the future.

Is there a way to change it so it looks active and not empty, or add a note to the block in the editor that won’t be included in the final output page?

Hello @draper3000,

Thanks for writing in!

In your element parameters, you can designate an initial text content so that it will display when you first place the Text element component.

{
  "sectionContent" : {
    "label"      : "My Text Block Content",
    "type"       : "text-editor",
    "initial"    : "This is a Text Block",
    "height"     : 2,
    "expandable" : false
  }
}

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.