From 76075b5fb558d880ce44adbc0ec3a337d4d6fcb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 26 Dec 2018 12:09:50 -0500 Subject: [PATCH] Don't show subject (annoying when leaving comment); restrict format Ref #32 --- ...y_form_display.comment.comment.default.yml | 23 +++++++++---------- ...eld.field.comment.comment.comment_body.yml | 9 ++++++++ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/config/sync/core.entity_form_display.comment.comment.default.yml b/config/sync/core.entity_form_display.comment.comment.default.yml index c36e04e..0e93abe 100644 --- a/config/sync/core.entity_form_display.comment.comment.default.yml +++ b/config/sync/core.entity_form_display.comment.comment.default.yml @@ -6,6 +6,7 @@ dependencies: - comment.type.comment - field.field.comment.comment.comment_body module: + - allowed_formats - text _core: default_config_hash: i9gg03KbztdQ0LmR6WLr5smEj5TBKU12U2X8ZlSpKJA @@ -15,22 +16,20 @@ bundle: comment mode: default content: author: - weight: -2 + weight: 0 region: content + settings: { } + third_party_settings: { } comment_body: type: text_textarea - weight: 11 + weight: 1 settings: rows: 5 placeholder: '' - third_party_settings: { } + third_party_settings: + allowed_formats: + hide_help: '1' + hide_guidelines: '0' region: content - subject: - type: string_textfield - weight: 10 - settings: - size: 60 - placeholder: '' - third_party_settings: { } - region: content -hidden: { } +hidden: + subject: true diff --git a/config/sync/field.field.comment.comment.comment_body.yml b/config/sync/field.field.comment.comment.comment_body.yml index e7cf7ab..5020781 100644 --- a/config/sync/field.field.comment.comment.comment_body.yml +++ b/config/sync/field.field.comment.comment.comment_body.yml @@ -6,7 +6,16 @@ dependencies: - comment.type.comment - field.storage.comment.comment_body module: + - allowed_formats - text +third_party_settings: + allowed_formats: + minimalhtml: minimalhtml + basic_html: '0' + restricted_html: '0' + minimalhtmltitle: '0' + full_html: '0' + plain_text: '0' _core: default_config_hash: TmAKjNrJ7RR60YpqvJq_QqEewYe_S8Kd23n8VRCqiWs id: comment.comment.comment_body