Problem/Motivation
The filter.format.ca3_format text format that this recipe installs allows only a small set of tags:
<a href hreflang target rel> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <drupal-media data-entity-type data-entity-uuid data-view-mode alt data-caption>
Two problems with this list:
- <p> is not allowed. Every paragraph in an embedded CA3 fragment gets removed — the paragraph text disappears.
- Only a few specific attributes are allowed. Things like data-list-item-id on <li>, data-entity-type / data-entity-uuid / data-entity-substitution / data-lit-original-text on internal link <a> tags, class, id, and any aria-* attributes all get stripped out.
Steps to reproduce
Proposed resolution
Expand the allowed_html setting in config/filter.format.ca3_format.yml so it covers the tags and attributes a CA3 fragment normally contains. Use wildcards (aria-*, class, data-*, id, itemprop, itemscope, itemtype, name)
Remaining tasks
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
hardik_patel_12 commentedComment #3
hardik_patel_12 commentedComment #4
hardik_patel_12 commentedComment #5
hardik_patel_12 commentedComment #9
hardik_patel_12 commentedComment #10
supreetam09 commented