Needs work
Project:
Cookiebot - Cookie consent, Cookie monitoring and Cookie control
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Sep 2020 at 14:45 UTC
Updated:
5 Dec 2025 at 09:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mpp commentedPatch by zero2one.
Comment #5
mpp commentedWith CKeditor 5 the patch in #2 results in an error
CKEditor 5 only works with HTML-based text formats. The "Replace Cookiebot declaration placeholder" (filter_cookiebot_declaration) filter implies this text format is not HTML anymore.Replaced the
FilterInterface::TYPE_MARKUP_LANGUAGEwithFilterInterface::TYPE_TRANSFORM_IRREVERSIBLE.Comment #6
wim leers#5 is correct!
See
\Drupal\filter\Plugin\FilterInterface's docs. Similar ones: https://www.drupal.org/project/adsense, https://www.drupal.org/project/entity_embed, https://www.drupal.org/project/token_filter, et cetera.Comment #8
flyke commentedI just wanted to note that MR5 applies to D11.2.8. It adds a filter you can enable for text format and editors, and when enabled, if you place '[COOKIEBOT_DECLARATION]' inside your text, it will effectively be replaced with the cookie declaration.
For me it all seems to work, so is it ok to set the status to reviewed and tested by the community ?