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 1f785fc..5de8988 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: 1 + weight: 0 settings: { } langcode: en diff --git a/core/modules/filter/config/schema/filter.schema.yml b/core/modules/filter/config/schema/filter.schema.yml index 82eda0d..6a28b4e 100644 --- a/core/modules/filter/config/schema/filter.schema.yml +++ b/core/modules/filter/config/schema/filter.schema.yml @@ -38,6 +38,9 @@ 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 deleted file mode 100644 index d6f3bad..0000000 --- a/core/profiles/standard/config/install/filter.format.plain_text.yml +++ /dev/null @@ -1,44 +0,0 @@ -# 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 fe22b49..95a20e5 100644 --- a/core/profiles/standard/config/install/filter.format.restricted_html.yml +++ b/core/profiles/standard/config/install/filter.format.restricted_html.yml @@ -33,13 +33,4 @@ 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 298a3e3..f588cd3 100644 --- a/core/profiles/standard/standard.install +++ b/core/profiles/standard/standard.install @@ -78,10 +78,4 @@ 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(); }