Issue #3086965 by shaal, markconroy, webchick, kjay: Allow embedding media in CKEditor in Umami

merge-requests/2419/head
webchick 2019-11-04 21:52:44 -08:00
parent b3a5877a85
commit 0a711ca88b
4 changed files with 51 additions and 12 deletions

View File

@ -30,7 +30,7 @@ settings:
name: Media
items:
- Blockquote
- DrupalImage
- DrupalMediaLibrary
-
name: 'Block Formatting'
items:
@ -40,13 +40,15 @@ settings:
items:
- Source
plugins:
language:
language_list: un
stylescombo:
styles: ''
image_upload:
status: true
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: 0
height: 0
width: null
height: null

View File

@ -35,7 +35,7 @@ settings:
name: Media
items:
- Blockquote
- DrupalImage
- DrupalMediaLibrary
- Table
- HorizontalRule
-
@ -48,6 +48,8 @@ settings:
- ShowBlocks
- Source
plugins:
language:
language_list: un
stylescombo:
styles: ''
image_upload:
@ -56,5 +58,5 @@ image_upload:
directory: inline-images
max_size: ''
max_dimensions:
width: 0
height: 0
width: null
height: null

View File

@ -1,13 +1,14 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.responsive_3x2
module:
- editor
- media
name: 'Basic HTML'
format: basic_html
weight: 0
roles:
- authenticated
filters:
filter_html:
id: filter_html
@ -15,7 +16,7 @@ filters:
status: true
weight: -10
settings:
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption>'
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p> <br> <span> <img src alt height width data-entity-type data-entity-uuid data-align data-caption> <drupal-media data-entity-type data-entity-uuid data-view-mode data-align data-caption alt title>'
filter_html_help: false
filter_html_nofollow: false
filter_align:
@ -48,3 +49,15 @@ filters:
status: true
weight: 0
settings: { }
media_embed:
id: media_embed
provider: media
status: true
weight: 100
settings:
default_view_mode: responsive_3x2
allowed_view_modes:
responsive_3x2: responsive_3x2
allowed_media_types:
image: image
remote_video: remote_video

View File

@ -1,13 +1,14 @@
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.responsive_3x2
module:
- editor
- media
name: 'Full HTML'
format: full_html
weight: 2
roles:
- administrator
filters:
filter_align:
id: filter_align
@ -33,3 +34,24 @@ filters:
status: true
weight: 11
settings: { }
filter_html:
id: filter_html
provider: filter
status: false
weight: -10
settings:
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <s> <sup> <sub> <table> <caption> <tbody> <thead> <tfoot> <th> <td> <tr> <hr> <p> <h1> <pre> <drupal-media data-entity-type data-entity-uuid data-view-mode data-align data-caption alt title>'
filter_html_help: true
filter_html_nofollow: false
media_embed:
id: media_embed
provider: media
status: true
weight: 100
settings:
default_view_mode: responsive_3x2
allowed_view_modes:
responsive_3x2: responsive_3x2
allowed_media_types:
image: image
remote_video: remote_video