Menu du compte de l'utilisateur

  • Log in

Navigation principale

  • Home Page
  • All CMS
  • Tutorials
  • White Paper
Home
Guide CMS

Breadcrumb

  • Home
  • Tutorials
  • Drupal User Guide
  • Chapter 6. Setting Up Content Structure
  • 6.16. Configuring Text Formats and Editors

Language selector

  • Français
  • English

Main navigation

  • Home Page
  • All CMS
  • Tutorials
  • White Paper

User login

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
  • Create new account
  • Reset your password

Book navigation

  • Tutorials
    • Drupal User Guide
      • Preface
      • Chapter 1. Understanding Drupal
      • Chapter 2. Planning Your Site
      • Chapter 3. Installation
      • Chapter 4. Basic Site Configuration
      • Chapter 5. Basic Page Management
      • Chapter 6. Setting Up Content Structure
        • 6.1. Adding a Content Type
        • 6.2. Deleting a Content Type
        • 6.3. Adding Basic Fields to a Content Type
        • 6.4. Concept: Reference Fields
        • 6.5. Concept: Taxonomy
        • 6.6. Setting Up a Taxonomy
        • 6.7. Adding a Reference Field
        • 6.8. Concept: Forms and Widgets
        • 6.9. Changing Content Entry Forms
        • 6.10. Concept: View Modes and Formatters
        • 6.11. Changing Content Display
        • 6.12. Concept: Image Styles
        • 6.13. Setting Up an Image Style
        • 6.14. Concept: Responsive Image Styles
        • 6.15. Concept: Text Formats and Editors
        • 6.16. Configuring Text Formats and Editors
      • Chapter 7. Managing User Accounts
      • Chapter 8. Blocks
      • Chapter 9. Creating Listings with Views

Guy Vigneault

6.16. Configuring Text Formats and Editors

By Guy Vigneault | 11:30 PM EDT, Thu March 12, 2026

Goal

Add a horizontal rule tag to the Basic HTML text format, and a corresponding button to its editor configuration.

Prerequisite knowledge

Section 6.15, “Concept: Text Formats and Editors”

Site prerequisites

  • The core Filter, Editor, and CKEditor modules must be installed. They are installed on your site when you install with the core Standard installation profile.
  • The Basic HTML text format must exist. This is created on your site when you install with the core Standard installation profile.

Steps

  1. In the Manage administrative menu, navigate to Configuration > Content authoring > Text formats and editors (admin/config/content/formats). The Text formats and editors page appears. Note that the names of the text formats that came with your installation profile are shown in English on this page; see Section 2.7, “Concept: User Interface, Configuration, and Content translation” for an explanation.
  2. Click Configure for the Basic HTML text format. The Basic HTML page appears.
  3. Note that CKEditor is selected in the Text editor field. This allows you to configure the editor’s toolbar.
  4. Drag the horizontal line button from Available buttons to the Active toolbar. Toolbar items can be visually grouped together using a vertical divider. As an alternative to dragging, you can tab to select buttons and then move them using keyboard arrow keys.

    Configuring the editor

  5. Note that you can change the Filter processing order.
  6. Under Filter settings > Limit allowed HTML tags and correct faulty HTML, in the field Allowed HTML tags, verify that <hr> is present (adding its editor button will automatically update the allowed tags).

    Configuring the HTML tags

  7. Click Save configuration. You will be taken back to the Text formats and editors page. A message will be displayed saying that the text format has been updated.

    Confirmation message for text format configuration

Expand your understanding

If you do not see the effect of these changes in your site, you might need to clear the cache. See Section 12.2, “Clearing the Cache”.

Videos

Configuring Text Formats and Editors

Attributions

Written and edited by Boris Doesborg, and Joe Shindelar at Drupalize.Me.

 

Book traversal links for Tutorials

  • ‹ 6.15. Concept: Text Formats and Editors
  • Up
  • Chapter 7. Managing User Accounts ›
CMS

 

All CMS

 

Tuto

 

Tutorials

 

White Paper

 

White Paper

Powered by Drupal

Privacy Policy

Privacy Policy

 

Recent content

  • 9.3. Creating a Content List View
    5 days 7 hours ago
  • 9.2. Concept: The Parts of a View
    5 days 7 hours ago
  • 9.1. Concept: Uses of Views
    5 days 7 hours ago
  • Chapter 9. Creating Listings with Views
    5 days 7 hours ago
  • 8.3. Placing a Block in a Region
    1 month 2 weeks ago

Copyright

Creative Commons

Sauf mention contraire, Guide CMS © 2025 par Guy Vigneault est sous licence Creative Commons Attribution - Utilisation non commerciale - Partage dans les mêmes conditions 4.0 International

 

Creative Commons

Unless otherwise stated, Guide CMS © 2025 by Guy Vigneault is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

eGV Web