madeyourday / contao-rocksolid-frontend-helper

RockSolid Frontend Helper Contao Extension
http://rocksolidthemes.com/de/contao/plugins/frontend-editing
MIT License
5 stars 4 forks source link

Find a solution for insert tag contents #47

Open Toflar opened 3 years ago

Toflar commented 3 years ago

If you have e.g. an HTML element that contains only of

{{insert.....}}<br>, the helper will add its required data attribute information to the <br>.

There are two issues with it

ausi commented 3 years ago

A possible solution might be to allow https://github.com/madeyourday/contao-rocksolid-frontend-helper/blob/6609546d37407e75f21e2bb8550d94d74fc403e9/src/FrontendHooks.php#L891 to add a wrapper <div> or <span> in such cases.

But this needs to be limited to elements with toolbars (not for templates) and we should check if this needs to be an option that can be deactivated.