diff --git a/core/modules/filter/config/install/filter.format.plain_text.yml b/core/modules/filter/config/install/filter.format.plain_text.yml index 5de8988..1f785fc 100644 --- a/core/modules/filter/config/install/filter.format.plain_text.yml +++ b/core/modules/filter/config/install/filter.format.plain_text.yml @@ -30,6 +30,6 @@ filters: id: filter_autop provider: filter status: true - weight: 0 + weight: 1 settings: { } langcode: en diff --git a/core/modules/filter/config/schema/filter.schema.yml b/core/modules/filter/config/schema/filter.schema.yml index 6a28b4e..82eda0d 100644 --- a/core/modules/filter/config/schema/filter.schema.yml +++ b/core/modules/filter/config/schema/filter.schema.yml @@ -38,9 +38,6 @@ filter.format.*: langcode: type: string label: 'Default language' - dependencies: - type: config_dependencies - label: 'Dependencies' filter_settings.*: type: sequence diff --git a/core/profiles/standard/config/install/filter.format.plain_text.yml b/core/profiles/standard/config/install/filter.format.plain_text.yml new file mode 100644 index 0000000..d6f3bad --- /dev/null +++ b/core/profiles/standard/config/install/filter.format.plain_text.yml @@ -0,0 +1,44 @@ +# Every site requires at least one text format as fallback format that +# - is accessible to all users. +# - is secure, using very basic formatting only. +# - may be modified by installation profiles to have other properties. +format: plain_text +name: 'Plain text' +status: true +weight: 10 +roles: + - anonymous + - authenticated +filters: + # Escape all HTML. + filter_html_escape: + id: filter_html_escape + provider: filter + status: true + weight: -10 + settings: { } + # Convert URLs into links. + filter_url: + id: filter_url + provider: filter + status: true + weight: 0 + settings: + filter_url_length: 72 + # Convert linebreaks into paragraphs. + filter_autop: + id: filter_autop + provider: filter + status: true + weight: 1 + settings: { } + editor_file_reference: + id: editor_file_reference + provider: editor + status: false + weight: 0 + settings: { } +langcode: en +dependencies: + module: + - editor diff --git a/core/profiles/standard/config/install/filter.format.restricted_html.yml b/core/profiles/standard/config/install/filter.format.restricted_html.yml index 95a20e5..fe22b49 100644 --- a/core/profiles/standard/config/install/filter.format.restricted_html.yml +++ b/core/profiles/standard/config/install/filter.format.restricted_html.yml @@ -33,4 +33,13 @@ filters: status: true weight: 10 settings: { } + editor_file_reference: + id: editor_file_reference + provider: editor + status: false + weight: 0 + settings: { } langcode: en +dependencies: + module: + - editor diff --git a/core/profiles/standard/standard.install b/core/profiles/standard/standard.install index b9d1c02..c57259c 100644 --- a/core/profiles/standard/standard.install +++ b/core/profiles/standard/standard.install @@ -73,4 +73,10 @@ function standard_install() { // Enable the admin theme. \Drupal::config('node.settings')->set('use_admin_theme', '1')->save(); + + // Resave the plain_text formatter so that default filter plugins and + // dependencies are calculated correctly. This resolves an issue caused by the + // fact that filter is installed before editor but the standard profile also + // enables the file module. + entity_load('filter_format', 'plain_text')->save(); }