Returns the attachments for all editors.
array $editor_ids: A list of all in-place editor IDs that should be attached.
array An array of attachments, for use with #attached.
Overrides EditorSelectorInterface::getEditorAttachments
public function getEditorAttachments(array $editor_ids) {
$attachments = array();
$editor_ids = array_unique($editor_ids);
// Editor plugins' attachments.
foreach ($editor_ids as $editor_id) {
$editor = $this->editorManager
->createInstance($editor_id);
$attachments[] = $editor
->getAttachments();
}
return NestedArray::mergeDeepArray($attachments);
}