As far as I understood, you are trying to have an element for example paragraph.
There is another element with a class that acts as a placeholder and when needed you replace this element with a ‘br’ tag.

Here is a demo of doing what I explained: https://codepen.io/svetoslavb04/pen/NWBdJrp

Best Regards,
Svetoslav Borislavov

Smart UI Team