Wrap CMSEditableRegion content with a tag

James Ison asked on May 10, 2018 22:46

I have an editable region where I need content to go. If there is no content the div should disappear. The problem is it needs padding to format the content. It's set as a textbox I don't want them adding HTML. but I need to be able to wrap the output (ONLY if there IS output) in a span tag so I can target the span with margins instead of adding padding to the container.

Right now I am using JQuery to detect if the div has content and adding the padding at runtime but it doesn't work like I want it to and I haven't been able to find a way to wrap the output. Nothing I do seems to work. There has to be a way of overriding the display so I can add a simple HTMLEnvelope around the control...

   Please, sign in to be able to submit a new answer.