diff --git a/src/composer.json b/src/composer.json index 7de497f..56fb49e 100644 --- a/src/composer.json +++ b/src/composer.json @@ -19,6 +19,7 @@ "drupal/core-composer-scaffold": "^9.1", "drupal/core-project-message": "^9.1", "drupal/core-recommended": "^9.1", + "drupal/insert": "2.x-dev@dev", "drupal/paragraphs": "^1.12", "drupal/redirect_after_login": "^2.7", "wikimedia/composer-merge-plugin": "^1.4" diff --git a/src/composer.lock b/src/composer.lock index 330c9e4..43d9d42 100644 --- a/src/composer.lock +++ b/src/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2b6d8f58cfdc2821fccf746b97aa3142", + "content-hash": "888fe42cf942c6c8999c2a40935e0e5a", "packages": [ { "name": "alchemy/zippy", @@ -5329,6 +5329,59 @@ "source": "https://git.drupalcode.org/project/inline_entity_form" } }, + { + "name": "drupal/insert", + "version": "dev-2.x", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/insert.git", + "reference": "892cb12f5c748f29106a04b4cdfd4fe77a503118" + }, + "require": { + "drupal/core": "^8 || ^9" + }, + "require-dev": { + "drupal/colorbox": "*" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + }, + "drupal": { + "version": "8.x-2.0-beta1+6-dev", + "datestamp": "1597165610", + "security-coverage": { + "status": "not-covered", + "message": "Dev releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Neslee Canil Pinto", + "homepage": "https://www.drupal.org/user/3580850" + }, + { + "name": "Snater", + "homepage": "https://www.drupal.org/user/3513717" + }, + { + "name": "quicksketch", + "homepage": "https://www.drupal.org/user/35821" + } + ], + "description": "Assists in inserting files, images, or other media into the body field as well as other editor and text areas.", + "homepage": "https://www.drupal.org/project/insert", + "support": { + "source": "https://git.drupalcode.org/project/insert" + }, + "time": "2020-10-08T16:45:33+00:00" + }, { "name": "drupal/jquery_ui", "version": "1.4.0", @@ -12504,6 +12557,7 @@ "aliases": [], "minimum-stability": "stable", "stability-flags": { + "drupal/insert": 20, "drupal/autocomplete_deluxe": 5, "drupal/better_exposed_filters": 10, "drupal/bulkdelete": 20, diff --git a/src/config/sync/core.entity_form_display.node.texte.default.yml b/src/config/sync/core.entity_form_display.node.texte.default.yml index 5ed76b7..84ac31c 100644 --- a/src/config/sync/core.entity_form_display.node.texte.default.yml +++ b/src/config/sync/core.entity_form_display.node.texte.default.yml @@ -20,7 +20,9 @@ dependencies: module: - datetime - field_group + - filefield_sources - image + - insert - paragraphs - text - video_embed_field @@ -181,9 +183,44 @@ content: field_images: weight: 5 settings: - progress_indicator: throbber preview_image_style: thumbnail - third_party_settings: { } + progress_indicator: throbber + third_party_settings: + filefield_sources: + filefield_sources: + sources: + upload: true + remote: false + clipboard: false + reference: false + attach: false + source_reference: + autocomplete: '0' + search_all_fields: '0' + source_attach: + path: file_attach + absolute: 0 + attach_mode: move + insert: + styles: + large: large + insert__auto: 0 + link: 0 + icon_link: 0 + image: 0 + audio: 0 + video: 0 + medium: 0 + thumbnail: 0 + linkit_result_thumbnail: 0 + wide: 0 + default: insert__auto + auto_image_style: large + link_image: image + width: '' + align: '1' + caption: 0 + rotate: 0 type: image_image region: content field_notes: diff --git a/src/config/sync/core.entity_form_display.node.texte_prod.default.yml b/src/config/sync/core.entity_form_display.node.texte_prod.default.yml index 9e061c8..593b22b 100644 --- a/src/config/sync/core.entity_form_display.node.texte_prod.default.yml +++ b/src/config/sync/core.entity_form_display.node.texte_prod.default.yml @@ -17,7 +17,9 @@ dependencies: module: - datetime - field_group + - filefield_sources - image + - insert - paragraphs - text - video_embed_field @@ -158,9 +160,44 @@ content: field_images: weight: 125 settings: - progress_indicator: throbber preview_image_style: thumbnail - third_party_settings: { } + progress_indicator: throbber + third_party_settings: + filefield_sources: + filefield_sources: + sources: + upload: true + remote: false + clipboard: false + reference: false + attach: false + source_reference: + autocomplete: '0' + search_all_fields: '0' + source_attach: + path: file_attach + absolute: 0 + attach_mode: move + insert: + styles: + large: large + insert__auto: 0 + link: 0 + icon_link: 0 + image: 0 + audio: 0 + video: 0 + medium: 0 + thumbnail: 0 + linkit_result_thumbnail: 0 + wide: 0 + default: large + auto_image_style: large + link_image: image + width: '' + align: '1' + caption: 0 + rotate: 0 type: image_image region: content field_notes_prod: diff --git a/src/config/sync/core.extension.yml b/src/config/sync/core.extension.yml index fcb01d2..8aac250 100644 --- a/src/config/sync/core.extension.yml +++ b/src/config/sync/core.extension.yml @@ -56,6 +56,7 @@ module: honeypot: 0 image: 0 inline_entity_form: 0 + insert: 0 jquery_ui: 0 jquery_ui_button: 0 jquery_ui_checkboxradio: 0 diff --git a/src/config/sync/insert.config.yml b/src/config/sync/insert.config.yml new file mode 100644 index 0000000..042f523 --- /dev/null +++ b/src/config/sync/insert.config.yml @@ -0,0 +1,22 @@ +text_formats: + - wysiwyg +absolute: false +file_field_images_enabled: false +widgets: + file: + - file_generic + image: + - image_image +css_classes: + file: + - insert + image: + - insert +file_extensions: + audio: + - mp3 + video: + - mp4 +_core: + default_config_hash: n5mlpvT_JvAQDFdotgikrUvdzuhlUIjltA4S04wVZAY +langcode: fr