* When a Source Editing tag is added that an enabled plugin supports.
* When a Source Editing element is added that an enabled plugin supports.
*
* @var string
*/
public$enabledPluginsMessage='The following tag(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: %overlapping_tags.';
public$enabledPluginsMessage='The following @element_type(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: %overlapping_tags.';
/**
* When a Source Editing tag is added that a disabled plugin supports.
* When a Source Editing element is added that a disabled plugin supports.
*
* @var string
*/
public$availablePluginsMessage='The following tag(s) are already supported by available plugins and should not be added to the Source Editing "Manually editable HTML tags" field. Instead, enable the following plugins to support these tags: %overlapping_tags.';
public$availablePluginsMessage='The following @element_type(s) are already supported by available plugins and should not be added to the Source Editing "Manually editable HTML tags" field. Instead, enable the following plugins to support these @element_types: %overlapping_tags.';
@@ -647,6 +647,7 @@ public function providerPair(): array {
'heading',
'bold',
'italic',
'link',
'sourceEditing',
'textPartLanguage',
],
@@ -666,8 +667,25 @@ public function providerPair(): array {
],
'ckeditor5_sourceEditing'=>[
'allowed_tags'=>[
// Tag-only; supported by enabled plugin.
'<strong>',
// Tag-only; supported by disabled plugin.
'<table>',
// Tag-only; supported by no plugin.
'<exotic>',
// Tag + attributes; all supported by enabled plugin.
'<span lang>',
// Tag + attributes; all supported by an ineligible disabled
// plugin (has no toolbar item, has conditions).
'<img src>',
// Tag + attributes; all supported by disabled plugin.
'<code class="language-*">',
// Tag + attributes; tag already supported by enabled plugin,
// attributes supported by disabled plugin
'<h2 class="text-align-center">',
// Tag + attributes; tag already supported by enabled plugin,
// attribute not supported by no plugin.
'<a hreflang>',
],
],
],
@@ -679,6 +697,9 @@ public function providerPair(): array {
'violations'=>[
'settings.plugins.ckeditor5_sourceEditing.allowed_tags.0'=>'The following tag(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: <em class="placeholder">Bold (<strong>)</em>.',
'settings.plugins.ckeditor5_sourceEditing.allowed_tags.1'=>'The following tag(s) are already supported by available plugins and should not be added to the Source Editing "Manually editable HTML tags" field. Instead, enable the following plugins to support these tags: <em class="placeholder">Table (<table>)</em>.',
'settings.plugins.ckeditor5_sourceEditing.allowed_tags.3'=>'The following attribute(s) are already supported by enabled plugins and should not be added to the Source Editing "Manually editable HTML tags" field: <em class="placeholder">Language (<span lang>)</em>.',
'settings.plugins.ckeditor5_sourceEditing.allowed_tags.5'=>'The following tag(s) are already supported by available plugins and should not be added to the Source Editing "Manually editable HTML tags" field. Instead, enable the following plugins to support these tags: <em class="placeholder">Code Block (<code class="language-*">)</em>.',
'settings.plugins.ckeditor5_sourceEditing.allowed_tags.6'=>'The following attribute(s) are already supported by available plugins and should not be added to the Source Editing "Manually editable HTML tags" field. Instead, enable the following plugins to support these attributes: <em class="placeholder">Alignment (<h2 class="text-align-center">), Align center (<h2 class="text-align-center">)</em>.',
],
];
$data['INVALID some invalid Source Editable tags provided by plugin and another available in a not enabled plugin']=[