CK5 panel plugin blows away h5 elements

Created on 6 May 2025, 6 days ago

Problem/Motivation

Affects wxt 5.4.x and wxt 6.1.x/11.1.x

When the ck5 panel widget/plugin is enabled h5 elements are removed.

Steps to reproduce

  • Install wxt
  • paste in content that has h5 elements
  • use ckeditor5
  • watch the h5 elements vanish

Proposed resolution

Fix the panel plugin

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

🐛 Bug report
Status

Active

Version

6.1

Component

Code

Created by

🇨🇦Canada joseph.olstad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @joseph.olstad
  • 🇨🇦Canada smulvih2 Canada 🍁

    @joseph, thanks for creating this ticket! It's nice to have the large sites at AAFC with legacy CKE4 data to catch all of these issues.

    Here is the specific markup in question:

    <section class="panel panel-default">
        <header class="panel-heading">
            <h5 class="panel-title">
                Panel title
            </h5>
        </header>
        <div class="panel-body">
            <p>
                Panel body.......
            </p>
        </div>
    </section>
    

    The issue is, the wxt_panel plugin has the heading level hardcoded to h3.

    I already made the heading level configurable with the wxt_alerts plugin for a similar issue, and WCAG (setting proper heading levels). I will make the same changes to the wxt_panel plugin, to allow any heading level from h2 to h6.

    • smulvih2 committed c1a05f12 on 6.1.x
      Issue #3523010 by smulvih2, joseph.olstad: Make CKE5 panel plugin accept...
  • 🇨🇦Canada smulvih2 Canada 🍁

    @joseph this has been fixed and merged with 6.1.x. Now we can support any heading level from h2-h6 within the panels without markup being stripped.

  • 🇨🇦Canada joseph.olstad

    Perfect, thank you for the very quick response and fix!

Production build 0.71.5 2024