Skip to content

Commit

Permalink
Merge pull request #218 from itk-dev/feature/LOOP-1105-image-handling
Browse files Browse the repository at this point in the history
feature/LOOP 1105 image handling
  • Loading branch information
rimi-itk authored Oct 11, 2021
2 parents b1958be + ce3316f commit b868b24
Show file tree
Hide file tree
Showing 22 changed files with 391 additions and 51 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: 606341c6-9738-4ba1-9825-c9ba60b73475
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.os2loop_section_page_free.os2loop_section_page_free_html
- paragraphs.paragraphs_type.os2loop_section_page_free
module:
- text
id: paragraph.os2loop_section_page_free.default
targetEntityType: paragraph
bundle: os2loop_section_page_free
mode: default
content:
os2loop_section_page_free_html:
weight: 0
settings:
rows: 5
placeholder: ''
third_party_settings: { }
type: text_textarea
region: content
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
uuid: bb7b5dfc-649e-476a-b669-bd9c7e81b97a
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.media.full
- field.field.media.os2loop_media_image.field_media_image
- field.field.media.os2loop_media_image.field_media_library
- image.style.wide
- media.type.os2loop_media_image
module:
- image
id: media.os2loop_media_image.full
targetEntityType: media
bundle: os2loop_media_image
mode: full
content:
field_media_image:
label: hidden
weight: 0
settings:
image_style: wide
image_link: ''
third_party_settings: { }
type: image
region: content
hidden:
created: true
entity_print_view_epub: true
entity_print_view_pdf: true
entity_print_view_word_docx: true
field_media_library: true
langcode: true
name: true
search_api_excerpt: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ content:
weight: 1
label: hidden
settings:
view_mode: default
view_mode: full
link: false
third_party_settings: { }
region: content
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 6ea12029-736c-4978-b367-b6fbecf94573
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.os2loop_section_page_free.os2loop_section_page_free_html
- paragraphs.paragraphs_type.os2loop_section_page_free
module:
- text
id: paragraph.os2loop_section_page_free.default
targetEntityType: paragraph
bundle: os2loop_section_page_free
mode: default
content:
os2loop_section_page_free_html:
weight: 0
label: hidden
settings: { }
third_party_settings: { }
type: text_default
region: content
hidden:
entity_print_view_epub: true
entity_print_view_pdf: true
entity_print_view_word_docx: true
search_api_excerpt: true
55 changes: 55 additions & 0 deletions config/sync/editor.editor.os2loop_section_page_free_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
uuid: 5082e974-ec93-4d15-a3bc-89fb5ff566c1
langcode: en
status: true
dependencies:
config:
- filter.format.os2loop_section_page_free_html
module:
- ckeditor
format: os2loop_section_page_free_html
editor: ckeditor
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Format
- Bold
- Italic
-
name: Links
items:
- DrupalLink
- DrupalUnlink
-
name: Lists
items:
- BulletedList
- NumberedList
-
name: Media
items:
- Blockquote
- DrupalMediaLibrary
-
name: Tools
items:
- Source
- Table
plugins:
stylescombo:
styles: ''
language:
language_list: un
tokenbrowser:
token_types: { }
image_upload:
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- field.storage.node.os2loop_section_page_paragraph
- node.type.os2loop_section_page
- paragraphs.paragraphs_type.os2loop_section_page_free
- paragraphs.paragraphs_type.os2loop_section_page_info_block
- paragraphs.paragraphs_type.os2loop_section_page_search
- paragraphs.paragraphs_type.os2loop_section_page_views_refer
Expand All @@ -25,6 +26,7 @@ settings:
handler_settings:
negate: 0
target_bundles:
os2loop_section_page_free: os2loop_section_page_free
os2loop_section_page_views_refer: os2loop_section_page_views_refer
os2loop_section_page_info_block: os2loop_section_page_info_block
os2loop_section_page_search: os2loop_section_page_search
Expand All @@ -41,6 +43,9 @@ settings:
os2loop_documents_text_and_image:
weight: 9
enabled: false
os2loop_section_page_free:
enabled: true
weight: 9
os2loop_section_page_info_block:
enabled: true
weight: 11
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
uuid: 70a5c8fb-5457-475c-929a-1c3b2f1d0bdd
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.os2loop_section_page_free_html
- paragraphs.paragraphs_type.os2loop_section_page_free
module:
- better_formats
- text
third_party_settings:
better_formats:
allowed_formats_toggle: 1
allowed_formats:
os2loop_section_page_free_html: os2loop_section_page_free_html
os2loop_question_answer_plain_text: 0
os2loop_question_answer_rich_text: 0
os2loop_post_comment_plain_text: 0
os2loop_post_comment_rich_text: 0
os2loop_documents_body: 0
os2loop_documents_rich_text: 0
os2loop_external: 0
os2loop_message_message: 0
os2loop_page: 0
os2loop_post: 0
os2loop_question_plain_text: 0
os2loop_question_rich_text: 0
os2loop_section_page: 0
default_order_toggle: 0
default_order_wrapper:
formats:
os2loop_question_answer_plain_text:
weight: '0'
os2loop_question_answer_rich_text:
weight: '0'
os2loop_post_comment_plain_text:
weight: '0'
os2loop_post_comment_rich_text:
weight: '0'
os2loop_documents_body:
weight: '0'
os2loop_documents_rich_text:
weight: '0'
os2loop_external:
weight: '0'
os2loop_message_message:
weight: '0'
os2loop_page:
weight: '0'
os2loop_post:
weight: '0'
os2loop_question_plain_text:
weight: '0'
os2loop_question_rich_text:
weight: '0'
os2loop_section_page_free_html:
weight: '0'
os2loop_section_page:
weight: '0'
id: paragraph.os2loop_section_page_free.os2loop_section_page_free_html
field_name: os2loop_section_page_free_html
entity_type: paragraph
bundle: os2loop_section_page_free
label: 'Free HTML'
description: 'Add any HTML to the page. This may be used for creating advanced content.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: text_long
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ settings:
-
value: right
label: Right
-
value: full_above
label: 'Full width above content'
-
value: full_below
label: 'Full width below content'
-
value: half_above
label: 'Half width above content, centered'
-
value: half_below
label: 'Half width below content, centered'
allowed_values_function: ''
module: options
locked: false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 1b259590-7b56-4c6a-9db3-a1a400166a24
langcode: en
status: true
dependencies:
module:
- paragraphs
- text
id: paragraph.os2loop_section_page_free_html
field_name: os2loop_section_page_free_html
entity_type: paragraph
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
14 changes: 7 additions & 7 deletions config/sync/filter.format.os2loop_post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ filters:
status: true
weight: 10
settings: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
media_embed:
id: media_embed
provider: media
Expand All @@ -46,10 +53,3 @@ filters:
default_view_mode: default
allowed_media_types: { }
allowed_view_modes: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
14 changes: 7 additions & 7 deletions config/sync/filter.format.os2loop_question_answer_rich_text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ filters:
status: true
weight: 10
settings: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
media_embed:
id: media_embed
provider: media
Expand All @@ -46,10 +53,3 @@ filters:
default_view_mode: default
allowed_media_types: { }
allowed_view_modes: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
14 changes: 7 additions & 7 deletions config/sync/filter.format.os2loop_question_plain_text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ filters:
status: true
weight: 10
settings: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
media_embed:
id: media_embed
provider: media
Expand All @@ -46,10 +53,3 @@ filters:
default_view_mode: default
allowed_media_types: { }
allowed_view_modes: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
14 changes: 7 additions & 7 deletions config/sync/filter.format.os2loop_question_rich_text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ filters:
status: true
weight: 10
settings: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
media_embed:
id: media_embed
provider: media
Expand All @@ -46,10 +53,3 @@ filters:
default_view_mode: default
allowed_media_types: { }
allowed_view_modes: { }
token_filter:
id: token_filter
provider: token_filter
status: false
weight: 0
settings:
replace_empty: '0'
Loading

0 comments on commit b868b24

Please sign in to comment.