Skip to content

Conversation

@simonLeary42
Copy link
Collaborator

proper header hierarchy is important for accessibility. The biggest header that CKEditor will make out of the box is <h2> (docs). The Title plugin allows you to make an <h1>.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables the CKEditor Title plugin to support <h1> headers in page content, improving accessibility through proper header hierarchy. The changes modify the CKEditor setup to accept additional plugins and update existing page content to use <h1> headers.

  • Modified setupCKEditor() to accept optional extra plugins array
  • Integrated the Title plugin into the content management page
  • Updated bootstrap SQL data to use <h1> headers instead of <h3> for main page titles

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
webroot/js/global-early.js Refactored setupCKEditor() to accept optional plugins via extraPlugins parameter and construct plugin array dynamically
webroot/admin/content.php Added Title plugin import and passed it to setupCKEditor() for content management
tools/docker-dev/sql/bootstrap.sql Updated page content to use <h1> tags for "Documentation and FAQ" headers instead of <h3>

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@simonLeary42 simonLeary42 merged commit 9889281 into main Dec 29, 2025
3 checks passed
@simonLeary42 simonLeary42 deleted the ckeditor-h1 branch December 29, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants