Kentico 7 hide editable text if it's empty

Viewed 1864

I have an editable text web part on a page template. It has a custom HTML envelope before and after the text. How can I hide the whole thing, envelope included, if the editable text is empty?

I need to hide it because the envelope adds stylized markup that shouldn't be visible when there is no text.

Can it be done with a K# snippet on the Visible property? I'm unclear how interrogating a document's property works.

Thanks!

2 Answers
Related