Skip to content

Commit

Permalink
Closes #2946 Video Thumbnail in Page/Event/News Editor Too Small (#2949)
Browse files Browse the repository at this point in the history
  • Loading branch information
bberndt-uaz authored and joeparsons committed Nov 27, 2023
1 parent fce6fc2 commit af5484a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/custom/az_media/az_media.module
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Entity\EntityFormInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\editor\Entity\Editor;
use Drupal\Core\Logger\RfcLogLevel;
use Drupal\responsive_image\Entity\ResponsiveImageStyle;

/**
* Implements hook_ckeditor_css_alter().
* Implements hook_library_info_alter().
*/
function az_media_ckeditor_css_alter(array &$css, Editor $editor) {
$css[] = \Drupal::service('extension.list.module')->getPath('az_media') . '/css/az-media-edit.css';
function az_media_library_info_alter(array &$libraries, $extension) {
if ($extension === 'ckeditor5' && isset($libraries['internal.drupal.ckeditor5.media'])) {
$libraries['internal.drupal.ckeditor5.media']['dependencies'][] = 'az_media/az_media_edit';
}
}

/**
Expand Down

0 comments on commit af5484a

Please sign in to comment.