Allow usage of WYSIWYG in maintenance message

Created on 13 June 2016, over 8 years ago
Updated 14 March 2024, 9 months ago

Problem/Motivation

When creating a custom message for the maintenance page, you can use HTML at /admin/config/development/maintenance. The purpose of this issue is to enable the WYSIWYG editor on this page.

User interface changes

Before:

Expected after:

Impacts

  1. Update the system.schema and the corresponding system.maintenace configuration.
  2. Add hook_update_N() for this.
  3. Update MaintenanceForm to allow WYSIWYG.
  4. Update the message display in Maintenance page to let the message value being displayed.
  5. Update tests
  6. Update translation tests
  7. Update update process (from D6/D7 to D8)
  8. Update the update process tests.

Data model changes

Before message is now a text_format instead of text in system.schema.yml, the system.maintenance.yml is impacted. message key is now an array of value / format.

Before:

message: '@site is currently under maintenance. We should be back shortly. Thank you for your patience.'
langcode: en

After:

message:
  value: '@site is currently under maintenance. We should be back shortly. Thank you for your patience.'
  format: plain_text
langcode: en
Feature request
Status

Needs work

Version

11.0 🔥

Component
Base 

Last updated 3 days ago

Created by

🇫🇷France Dom.

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024