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

D8CORE-7424 Added various HTML attributes to the WSYIWYG allowed list #799

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 32 additions & 29 deletions config/sync/editor.editor.stanford_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ settings:
- '|'
- codeBlock
- code
- textPartLanguage
- undo
- redo
plugins:
Expand Down Expand Up @@ -106,42 +107,44 @@ settings:
custom_metadata: false
async_metadata: true
recommended_enabled: false
ckeditor5_language:
language_list: un
ckeditor5_list:
properties:
reversed: false
reversed: true
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags:
- '<b>'
- '<cite>'
- '<dt>'
- '<pre class>'
- '<code data-* class>'
- '<dl class>'
- '<dd class>'
- '<div id class>'
- '<i class>'
- '<aside class>'
- '<img src alt title class>'
- '<abbr id title>'
- '<span id class>'
- '<blockquote cite>'
- '<ul id type class>'
- '<ol id type class>'
- '<li id class>'
- '<h2 id class>'
- '<h3 id class>'
- '<h4 id class>'
- '<h5 id class>'
- '<table id class>'
- '<tbody class>'
- '<th scope id class>'
- '<td id class>'
- '<tr id>'
- '<b aria-* class dir id lang title>'
- '<cite aria-* class dir id lang title>'
- '<dt aria-* class dir id lang title>'
- '<pre aria-* class dir id lang title>'
- '<code data-* aria-* class dir id lang title>'
- '<dl aria-* class dir id lang title>'
- '<dd aria-* class dir id lang title>'
- '<div role aria-* class dir id lang title>'
- '<i role aria-* class dir id lang title>'
- '<aside aria-* class dir id lang title>'
- '<img src alt title aria-* class dir id lang>'
- '<abbr aria-* class dir id lang title>'
- '<span aria-* class dir id lang title>'
- '<blockquote cite aria-* class dir id lang title>'
- '<ul type aria-* class dir id lang title>'
- '<ol type aria-* class dir id lang title>'
- '<li aria-* class dir id lang title>'
- '<h2 aria-* class dir id lang title>'
- '<h3 aria-* class dir id lang title>'
- '<h4 aria-* class dir id lang title>'
- '<h5 aria-* class dir id lang title>'
- '<table aria-* class dir id lang title>'
- '<tbody aria-* class dir id lang title>'
- '<th scope aria-* class dir id lang title>'
- '<td aria-* class dir id lang title>'
- '<tr aria-* class dir id lang title>'
- '<drupal-media data-* title>'
- '<a aria-label hreflang data-entity-substitution data-entity-type data-entity-uuid title name class>'
- '<p id class>'
- '<a hreflang data-entity-substitution data-entity-type data-entity-uuid name aria-* class dir id lang title>'
- '<p aria-* class dir id lang title>'
ckeditor5_style:
styles:
-
Expand Down
16 changes: 8 additions & 8 deletions config/sync/editor.editor.stanford_minimal_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ settings:
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags:
- '<h2 id class>'
- '<h3 id class>'
- '<h4 id class>'
- '<h5 id class>'
- '<h6 id class>'
- '<h2 aria-* class dir id lang title>'
- '<h3 aria-* class dir id lang title>'
- '<h4 aria-* class dir id lang title>'
- '<h5 aria-* class dir id lang title>'
- '<h6 aria-* class dir id lang title>'
- '<cite>'
- '<dd>'
- '<div id class>'
- '<div aria-* class dir id lang title>'
- '<blockquote cite>'
- '<p id class>'
- '<a aria-label hreflang data-entity-substitution data-entity-type data-entity-uuid title id class>'
- '<p aria-* class dir id lang title>'
- '<a hreflang data-entity-substitution data-entity-type data-entity-uuid aria-* class dir id lang title>'
ckeditor5_style:
styles:
-
Expand Down
2 changes: 1 addition & 1 deletion config/sync/filter.format.stanford_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ filters:
status: true
weight: -50
settings:
allowed_html: '<br> <p class id> <h2 id class> <h3 id class> <h4 id class> <h5 id class> <a class aria-label hreflang data-entity-substitution data-entity-type data-entity-uuid title name href> <b> <cite> <dt> <pre class> <code data-* class> <dl class> <dd class> <div id class> <i class> <aside class> <img src alt title class> <abbr id title> <span id class> <blockquote cite> <ul id type class> <ol id type class start> <li id class> <table id class> <tbody class> <th scope id class rowspan colspan> <td id class rowspan colspan> <tr id> <drupal-media data-* title alt> <strong> <em> <s> <sub> <sup> <hr> <thead> <tfoot> <caption>'
allowed_html: '<br class> <p aria-* class dir id lang title> <h2 aria-* class dir id lang title> <h3 aria-* class dir id lang title> <h4 aria-* class dir id lang title> <h5 aria-* class dir id lang title> <a hreflang data-entity-substitution data-entity-type data-entity-uuid name href aria-* class dir id lang title> <b> <cite class dir id lang title> <dt aria-* class dir id lang title> <pre aria-* class dir id lang title> <code data-* aria-describedby aria-hidden aria-labelledby class dir id lang title> <dl aria-* class dir id lang title> <dd aria-* class dir id lang title> <div role aria-* class dir id lang title> <i role aria-* class dir id lang title> <aside aria-* class dir id lang title> <img src alt aria-* class dir id lang title> <abbr aria-* class dir id lang title> <span aria-* class dir id lang title> <blockquote cite aria-* class dir id lang title> <ul type aria-* class dir id lang title> <ol type start aria-* class dir id lang title> <li aria-* class dir id lang title> <table aria-* class dir id lang title> <tbody aria-* class dir id lang title> <th abbr scope rowspan colspan aria-* class dir id lang title> <td rowspan colspan aria-* class dir id lang title> <tr aria-* class dir id lang title> <drupal-media data-* title alt aria-* class dir id lang title> <strong aria-* class dir id lang title> <em aria-* class dir id lang title> <s aria-* class dir id lang title> <sub aria-* class dir id lang title> <sup aria-* class dir id lang title> <hr class> <thead aria-* class dir id lang title> <tfoot aria-* class dir id lang title> <caption aria-describedby aria-hidden aria-labelledby class dir id lang title>'
filter_html_help: true
filter_html_nofollow: false
filter_html_escape:
Expand Down
2 changes: 1 addition & 1 deletion config/sync/filter.format.stanford_minimal_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ filters:
status: true
weight: 0
settings:
allowed_html: '<br> <p id class> <a class aria-label hreflang data-entity-substitution data-entity-type data-entity-uuid title id href> <h2 id class> <h3 id class> <h4 id class> <h5 id class> <h6 id class> <cite> <dd> <div id class> <blockquote cite> <strong> <em> <code> <ul> <ol reversed start> <li>'
allowed_html: '<br> <p aria-* class dir id lang title> <a hreflang data-entity-substitution data-entity-type data-entity-uuid href aria-* class dir id lang title> <h2 aria-* class dir id lang title> <h3 aria-* class dir id lang title> <h4 aria-* class dir id lang title> <h5 aria-* class dir id lang title> <h6 aria-* class dir id lang title> <cite aria-* class dir id lang title> <dd aria-* class dir id lang title> <div role aria-* class dir id lang title> <blockquote cite aria-* class dir id lang title> <strong aria-* class dir id lang title> <em aria-* class dir id lang title> <code aria-describedby aria-hidden aria-labelledby class dir id lang title> <ul aria-* class dir id lang title> <ol reversed start aria-* class dir id lang title> <li aria-* class dir id lang title>'
filter_html_help: true
filter_html_nofollow: false
filter_html_escape:
Expand Down
Loading