Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Wim Leers on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Summary
The text formats provided in the Standard installation profile have changed.
- The "Filtered HTML" text format has been split into two:
- "Restricted HTML" (for anonymous users, more restrictive than before)
- "Basic HTML" (for authenticated users, more permissive than before).
- The WYSIWYG editor (CKEditor) is enabled for the "Basic HTML" format.
Note: this will not impact sites upgrading from Drupal 7! Only new Drupal 8 sites will get the modified text formats and will have CKEditor enabled by default; Drupal core has never modified existing content and never will.
Formats by role
By default, the following roles have access to these text formats. The one listed first will be the default. For Drupal 8, Anonymous and Authenticated users have different default formats; and the default for Authenticated users has CKEditor enabled.
Drupal 7
- Anonymous: Filtered HTML
- Authenticated: Filtered HTML
- Administrator: Filtered HTML, Full HTML
Drupal 8
- Anonymous: Restricted HTML
- Authenticated: Basic HTML
- Administrator: Basic HTML, Restricted HTML, Full HTML
Filters by format
These are the filters enabled in each format.
Drupal 7
- Filtered HTML:
- Limit HTML tags (
filter_html
):a, em, strong, cite, blockquote, code, ul, ol, li, dl, dt, dd
- Line break filter (
filter_autop
) - URL filter (
filter_url
) - HTML corrector (
filter_htmlcorrector
)
- Limit HTML tags (
- Full HTML:
- Line break filter (
filter_autop
) - URL filter (
filter_url
) - HTML corrector (
filter_htmlcorrector
)
- Line break filter (
Drupal 8
- Basic HTML (modified version of Filtered HTML).
CKEditor enabled, with the following buttons: Bold, Italic, Link, Unlink, BulletedList, NumberedList, Blockquote, Image, Source.
Filters:- Limit HTML tags (
filter_html
):a, em, strong, cite, blockquote, code, ul, ol, li, dl, dt, dd, h4, h5, h6, p, span, img
— MODIFIED: span and img tags now also allowed - Restrict images to this site (
filter_html_image_secure
) — NEW - HTML corrector (
filter_htmlcorrector
)
- Limit HTML tags (
- Restricted HTML (modified version of Filtered HTML).
CKEditor disabled.
Filters:- Limit HTML tags (
filter_html
):a, em, strong, cite, blockquote, code, ul, ol, li, dl, dt, dd, h4, h5, h6
— MODIFIED: therel=nofollow
setting is now enabled - Line break filter (
filter_autop
) - URL filter (
filter_url
) - HTML corrector (
filter_htmlcorrector
)
- Limit HTML tags (
- Full HTML: changes being worked on at #1933914: Enable CKEditor in the Standard install profile's "Full HTML" text format. CKEditor will be enabled by default
Impacts:
Site builders, administrators, editors