Use "elements" to whitelist the required HTML elements and attributes

Created on 15 November 2024, about 2 months ago

Problem/Motivation

On CKE4, to avoid the stripping of HTML elements and attributes, this module states that "If you use the Limit allowed HTML tags and correct faulty HTML filter, do not forget to add

  1. "

    On CKE5 this is no longer possible, as the Linit allowed HTML Tags textarea field is readonly and just reflects what has already been whitelisted at the pluign definition level.

    Right now, this module is setting elements: false.

    This means bootstrap tabs are not working out of the box with Limit HTML Allowed tags, as certain HTML elements and attributes are stripped.

    It is responsibility of this module to indicate which elements to keep in order to work with the Limit allowed HTML filter.

    Steps to reproduce

    - Add Bootstrap tabs to a filter
    - Mark the "Limit allowed HTML tags" setting
    - Create a tab. It renders OK inside the CKE5
    - See the entity. The tab is broken as several classes and even HTML elements will be missing (they will depend on the CKE5 configuration and which other plugins whitelist which elements/attributes)

    Proposed resolution

    Add the rules to the elements: entry of the ckeditor5 plugin definition.

    Remaining tasks

    User interface changes

    None

    API changes

    None

    Data model changes

    None

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain idiaz.roncero Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024