Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291721

SmartDefaultSettings should select the CKE5 plugin that minimizes creation of HTML restriction supersets

$
0
0

Problem/Motivation

Drupal\ckeditor5\SmartDefaultSettings::addToolbarItemsToMatchHtmlAttributesInFormat isn't necessarily handling use cases where CKEditor plugin only supports specific attribute value in the best possible way. Currently it will enable plugins that allow ALL values for an attribute. This means the attribute+value is now allowed but additional attribute values are permitted as well. This may need to be more selective.

If we don't do that, we could end up allowing <p class> instead of only allowing <p class="text-align-center">, for example.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 291721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>