update drupal
This commit is contained in:
@@ -215,6 +215,11 @@
|
||||
'figcaption',
|
||||
);
|
||||
|
||||
const captionFilter = new CKEDITOR.filter(
|
||||
widgetDefinition.editables.caption.allowedContent,
|
||||
);
|
||||
captionFilter.applyTo(caption);
|
||||
|
||||
// Use Drupal's data-placeholder attribute to insert a CSS-based,
|
||||
// translation-ready placeholder for empty captions. Note that it
|
||||
// also must to be done for new instances (see
|
||||
|
||||
@@ -139,6 +139,9 @@
|
||||
var figure = new CKEDITOR.htmlParser.element('figure');
|
||||
caption = new CKEDITOR.htmlParser.fragment.fromHtml(caption, 'figcaption');
|
||||
|
||||
var captionFilter = new CKEDITOR.filter(widgetDefinition.editables.caption.allowedContent);
|
||||
captionFilter.applyTo(caption);
|
||||
|
||||
caption.attributes['data-placeholder'] = placeholderText;
|
||||
|
||||
element.replaceWith(figure);
|
||||
|
||||
@@ -122,7 +122,7 @@ class CKEditorPluginManager extends DefaultPluginManager {
|
||||
$toolbar_rows = [];
|
||||
$settings = $editor->getSettings();
|
||||
foreach ($settings['toolbar']['rows'] as $row_number => $row) {
|
||||
$toolbar_rows[] = array_reduce($settings['toolbar']['rows'][$row_number], function (&$result, $button_group) {
|
||||
$toolbar_rows[] = array_reduce($settings['toolbar']['rows'][$row_number], function ($result, $button_group) {
|
||||
return array_merge($result, $button_group['items']);
|
||||
}, []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user