Problem/Motivation

During the usability study, some participants looked for the formatting dropdown so they could wrap their content headings in the correct, accessible tag. None of them realised they could configure the default WYSIWYG toolbar. One user manually created the h2 tags in the source view, on save these were stripped out. One user made do with bolding the heading instead.

Drupal 8 should support correct and accessible markup out of the box.

Proposed resolution

Enable the formatting dropdown and support for h2-h6 on the standards install.

Remaining tasks

Agree to make these changes
Patch
Test

User interface changes

A formatting dropdown

API changes

None

Data model changes

None

Comments

lewisnyman’s picture

Issue summary: View changes
merilainen’s picture

Status: Active » Needs review
StatusFileSize
new5.11 KB

This will add h2 and h3 as allowed elements and also adds the Format button to the Basic HTML toolbar as default during site-install.

Status: Needs review » Needs work

The last submitted patch, 2: h2_h6_headings_to_editor-2521906-2.patch, failed testing.

merilainen’s picture

Status: Needs work » Needs review
StatusFileSize
new6.85 KB

Updated the failing tests to match the allowed html elements.

lewisnyman’s picture

Issue summary: View changes
StatusFileSize
new444.33 KB
new395.97 KB

Awesome! I manually tested this patch after a fresh install and I can confirm that it works as expected.

lewisnyman’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

I don't think we need to worry about an upgrade path here as existing site might well have customised the list already - or want the more limited list. Added the standard commit credit for UMN 2015.

Usability improvements are prioritised during beta. Committed 9deeb7e and pushed to 8.0.x. Thanks!

  • alexpott committed 9deeb7e on 8.0.x
    Issue #2521906 by mErilainen, LewisNyman, Bojhan, eliza411, ivanstegic,...
wim leers’s picture

None of them realised they could configure the default WYSIWYG toolbar

Should we have a button for users that have the permission to change the text format/editor configuration, to jump directly to the configuration page?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.