ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.46k stars 3.7k forks source link

`<sup>` cannot contain `<strong>` (nor anything else it seems) #15117

Open wimleers opened 1 year ago

wimleers commented 1 year ago

πŸ“ Provide detailed reproduction steps (if any)

  1. Starting markup:
    <p>
    bla <sup>footnote with strong text and a link and maybe more</sup> bla
    </p>
  2. Open with CKEditor 5. Looks fine πŸ‘
  3. Click on "strong" and try to make it bold

(Repeat with other things, for example creating a link.)

βœ”οΈ Expected result

<p>
    bla <sup>footnote with <strong>strong</strong> text and a link and maybe more</sup> bla
</p>

❌ Actual result

<p>
    bla <sup>footnote with </sup><strong><sup>strong</sup></strong><sup> text and a link and maybe more</sup> bla
</p>

❓ Possible solution

No idea. Seems related to #5556, where @Reinmar wrote:

However, since it's implemented in the same way than bold/italic/etc it comes with their semantics: ☝️ That appears to be the root cause.

πŸ“ƒ Other details


If you'd like to see this fixed sooner, add a πŸ‘ reaction to this post.

CKEditorBot commented 1 week ago

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.