
| Current Path : /var/www/html/musik/web/core/modules/media/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/musik/web/core/modules/media/js/media_embed_ckeditor.theme.es6.js |
/**
* @file
* Theme elements for the Media Embed CKEditor plugin.
*/
((Drupal) => {
/**
* Themes the error displayed when the media embed preview fails.
*
* @return {string}
* A string representing a DOM fragment.
*
* @see media-embed-error.html.twig
*/
Drupal.theme.mediaEmbedPreviewError = () =>
`<div>${Drupal.t(
'An error occurred while trying to preview the media. Please save your work and reload this page.',
)}</div>`;
/**
* Themes the edit button for a media embed.
*
* @return {string}
* An HTML string to insert in the CKEditor.
*/
Drupal.theme.mediaEmbedEditButton = () =>
`<button class="media-library-item__edit">${Drupal.t(
'Edit media',
)}</button>`;
})(Drupal);