- Issue created by @joseph.olstad
- 🇨🇦Canada joseph.olstad
Another CK5 bug to fix
Added label / anchor use case to the issue summary, described belowCKEditor 4 accepted this:
<li class="checkbox" id="chbx-p2"> <input class="action-checkbox-2 cb-dmm" id="eg5-2" type="checkbox"> <label for="eg5-2">You hold a federal wine licence issued by the Canada Revenue Agency (CRA) under <a href="https://laws-lois.justice.gc.ca/eng/acts/e-14.1/page-2.html#h-179017">section 14 of the <cite>Excise Act, 2001</cite></a>, valid at the time you apply to the program and up to or after March 31, 2026 </label> </li>
CKEditor 5 turns the above into this (SURPRISE!):
<li class="checkbox" id="chbx-p2"> <input class="action-checkbox-2 cb-dmm" id="eg5-2" type="checkbox"> <label for="eg5-2">You hold a federal wine licence issued by the Canada Revenue Agency (CRA) under </label> <a href="https://laws-lois.justice.gc.ca/eng/acts/e-14.1/page-2.html#h-179017"><label for="eg5-2">section 14 of the </label></a> <cite><a href="https://laws-lois.justice.gc.ca/eng/acts/e-14.1/page-2.html#h-179017"><label for="eg5-2">Excise Act, 2001</label></a></cite> <label for="eg5-2">, valid at the time you apply to the program and up to or after March 31, 2026</label> </li>
- 🇨🇦Canada joseph.olstad
Ok so we have a partial solution for the above mentioned scenario (label fix) provided by the ckeditor5_label_fix module , the second part of it deals with the wxt distribution that needs a cite plugin adjustment.
Now onto another scenario, this time it's caused by ckeditor5 vanilla
CKEDITOR 4 markup:
<sup id="fn1-1-rf"><a class="fn-lnk" href="#fn1"><span class="wb-inv">Footnote </span>1</a></sup>
CKEDITOR 5 transforming to this:
<a class="fn-lnk" href="#fn1"><span class="wb-inv"><sup id="fn1-1-rf">Footnote </sup></span><sup id="fn1-1-rf">1</sup></a>
I'm working on a possible fix for this now.
- 🇨🇦Canada joseph.olstad
To get the fixes to the above mentioned scenarios:
install and configure the ckeditor5_table_fix module
install and configure the ckeditor5_label_fix module
install and configure the ckeditor5_sup_fix module
Each one of these modules has a dummy plugin that needs to be dragged onto the ck5 editor in the text format configuration for all text formats that need it (ones using ck5).