Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VOTE-2380: Only allow 'image' as embedded option in WYSIWYG #900

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions config/sync/core.entity_view_display.media.image.scaled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
uuid: 626b9a83-0f93-4953-97a8-ca30a42cf88f
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.scaled
- field.field.media.image.field_caption
- field.field.media.image.field_media_image
- image.style.scaled_lg
- media.type.image
module:
- svg_image
- text
id: media.image.scaled
targetEntityType: media
bundle: image
mode: scaled
content:
field_caption:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 1
region: content
field_media_image:
type: image
label: visually_hidden
settings:
image_link: ''
image_style: scaled_lg
image_loading:
attribute: lazy
svg_attributes:
width: null
height: null
svg_render_as_image: true
third_party_settings: { }
weight: 0
region: content
hidden:
created: true
langcode: true
name: true
thumbnail: true
uid: true
11 changes: 11 additions & 0 deletions config/sync/core.entity_view_mode.media.scaled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: 71e28add-26ea-4400-9cde-70baf155c1df
langcode: en
status: true
dependencies:
module:
- media
id: media.scaled
label: Scaled
description: ''
targetEntityType: media
cache: true
9 changes: 6 additions & 3 deletions config/sync/filter.format.basic_html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ uuid: 7541554d-e57b-4314-953a-24e11f9082c4
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.scaled
module:
- ckeditor5_embedded_content
- media
Expand Down Expand Up @@ -30,7 +32,8 @@ filters:
status: true
weight: 100
settings:
default_view_mode: default
default_view_mode: scaled
allowed_view_modes:
default: default
allowed_media_types: { }
scaled: scaled
allowed_media_types:
image: image