Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookiebar Inserttags renders unnecessary <div> #240

Open
5 tasks done
FlowinBeatz opened this issue Dec 16, 2024 · 0 comments
Open
5 tasks done

Cookiebar Inserttags renders unnecessary <div> #240

FlowinBeatz opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working unconfirmed

Comments

@FlowinBeatz
Copy link

Prerequisites

  • I checked for duplicate issues (open and closed)
  • I am using the latest stable version/release of the Contao Cookiebar
  • I made sure that my own template changes, CSS or JS do not interfere with the Contao Cookiebar
  • This issue contains only one bug.
  • This issue is not a question, not a feature request and I have read the documentation and pinned issues

Please select the topic(s) that most closely match your concern

Frontend (CSS/JS)

What operating system(s) are you seeing the problem on?

macOS, Linux

What browser(s) are you experiencing the problem on?

Chrome

Description

When I use the {{cookiebar::show}} Inserttag, the resulting <a> Tag is wrapped in an <div class="block">.
Because it's a realistic scenario that people will include this Inserttag in their data privacy statements within an <p> tag (which is automatically generated by TinyMCE) this results in sloppy HTML output.

<p>
<!-- TEMPLATE START: vendor/oveleon/contao-cookiebar/contao/templates/cookiebar/ccb_opener_default.html5 -->
    <!-- indexer::stop -->
    </p>
<div class=" block ">
<a href="javascript:;" class="ccb-trigger ccb-prefill" title="" rel="noreferrer noopener">Change privacy settings</a>
</div>
<!-- indexer::continue -->
<!-- TEMPLATE END: vendor/oveleon/contao-cookiebar/contao/templates/cookiebar/ccb_opener_default.html5 -->
<p></p>

Relevant log output

No response

@FlowinBeatz FlowinBeatz added bug Something isn't working unconfirmed labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant