We are migrating CKEditor issue tracking to GitHub. Please, use GitHub to report any new issues.

The former tracking system (this website) will still be available in the read-only mode. All issues reported in the past will still be available publicly and can be referenced.

Important: we decided not to transfer all the tickets to GitHub, as many of them are not reproducible anymore or simply no longer requested by the community. If the issue you are interested in, can be still reproduced in the latest version of CKEditor, feel free to report it again on GitHub. At the same time please note that issues reported on this website are still taken into consideration when picking up candidates for next milestones.

Change History (7)

<strike>
<span style="font-size:72px;">
This is some <strong>sample text</strong>.
You are using <a href="http://ckeditor.com/" data-cke-saved-href="http://ckeditor.com/">CKEditor</a>.
</span>
</strike>

This is the code produced by CKEditor in XHTML sample (more or less – I have replaced classes with styles)

<span style="text-decoration: line-through;">
<span style="font-size:500%;">
This is some <span class="Bold">sample text</span>. You are using <a href="http://ckeditor.com/" data-cke-saved-href="http://ckeditor.com/">CKEditor</a>.
</span>
</span>

If you paste the above code into HTML page and open in a Firefox or Opera browser than you will see that effect is the same as in CKEditor – line at the bottom of the text.
This is how those two browsers see it.

The only question from me would be – is it possible to change the code produced by CKEditor from the above to the code presented below:

<span style="text-decoration: line-through; font-size:500%;">
This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/" data-cke-saved-href="http://ckeditor.com/">CKEditor</a>.
</span>

This code displays strike-through line in the middle of the text in every browser.

Note: This only occurs if you change the font size before applying the strike through. If you apply strike through and then change the font size this does not happen because the strike tag is included inside the span tag:

Note: This only occurs if you change the font size before applying the strike through. If you apply strike through and then change the font size this does not happen because the strike tag is included inside the span tag:

AFAICS you can repro this issue in both cases, so the order does not matter.

The thing is that all browsers except FF will adjust strike through as the font size changes. It all happens behind the scenes.

@m.lewandowski from what I have checked @tmonahan might be right. When you use below code in contenteditable element, first two will display nicely, the other two with the strike line at the bottom of the text