From 1a5a731fa1c669bb38d064e45b010f912b308384 Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Thu, 28 Dec 2023 09:01:25 -0800 Subject: [PATCH] Enable use of media library in WYSIWYG editor --- config/editor.editor.basic_html.yml | 6 +++--- config/filter.format.basic_html.yml | 12 +++++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/config/editor.editor.basic_html.yml b/config/editor.editor.basic_html.yml index e78dca8..c4c51eb 100644 --- a/config/editor.editor.basic_html.yml +++ b/config/editor.editor.basic_html.yml @@ -22,12 +22,12 @@ settings: - numberedList - '|' - blockQuote - - drupalInsertImage - '|' - heading - code - '|' - sourceEditing + - drupalMedia plugins: ckeditor5_heading: enabled_headings: @@ -36,8 +36,6 @@ settings: - heading4 - heading5 - heading6 - ckeditor5_imageResize: - allow_resize: true ckeditor5_list: reversed: false startIndex: true @@ -56,6 +54,8 @@ settings: - '

' - '

' - '
' + media_media: + allow_view_mode_override: false image_upload: status: true scheme: public diff --git a/config/filter.format.basic_html.yml b/config/filter.format.basic_html.yml index 0b93b8f..57834b3 100644 --- a/config/filter.format.basic_html.yml +++ b/config/filter.format.basic_html.yml @@ -4,6 +4,7 @@ status: true dependencies: module: - editor + - media _core: default_config_hash: 73bBl0mQ4I5Md9_FoI1V9MErX_I6ykC9gNKwLqb80Ko name: 'Basic HTML' @@ -16,7 +17,7 @@ filters: status: true weight: -10 settings: - allowed_html: '