Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a custom ckeditor plugin (button) that was included in the basic html Text format where the filter "Limit allowed HTML tags and correct faulty HTML" is enable. My plugin Include a custom HTML tag "" and this custom tag was added in the "allowed tag" text field, but the tag is removed in the processed body.
"body": [
{
"value": "<custom-embed-jwplayer class=\"jwplayer\" data-video-id=\"THE_VIDEO_ID\"><img src=\"https://assets-jpcust.jwpsrv.com/thumbs/THE_VIDEO_ID.jpg\" /></custom-embed-jwplayer>",
"format": "basic_html",
"summary": "",
"processed": "<img src=\"https://assets-jpcust.jwpsrv.com/thumbs/THE_VIDEO_ID.jpg\" />"
}
],
It should not happend because the tag is included in the field of allowed tags, nevertheless it could happend because it is a custom html tag and could be taken like a fautly HTML
Comments
Comment #2
apupiales CreditAttribution: apupiales at Globant commented