Open Mgsy opened 1 year ago
Out of curiosity: What does CKE4 do in this case (with ACF disabled)?
Out of curiosity: What does CKE4 do in this case (with ACF disabled)?
I've mentioned it in the Other details section :smile:
In CKEditor 4 this issue doesn't occur, because italic is applied directly on text, not
<span>
, so it becomes<span><em>text</em></span>
, instead of<i><span>text</span></i>
.
I've mentioned it in the Other details sectionΒ
:facepalm: Sorry :(Β
Crazy idea: Maybe elements handled by GHS should get a different priority than default attribute elements? I wonder if it won't cause more issues (change the order when the current one is better) than help, but maybe it's worth considering.
π Provide detailed reproduction steps (if any)
βοΈ Expected result
The italic style is visible.
β Actual result
The italic style is invisible.
π Other details
It seems that it's caused by the fact that the copied text has
font-style:none
inline style and CKEditor 5 wraps<span>
in<i>
, so the inline style has a higher priority. In CKEditor 4 this issue doesn't occur, because italic is applied directly on text, not<span>
, so it becomes<span><em>text</em></span>
, instead of<i><span>text</span></i>
.If you'd like to see this fixed sooner, add a π reaction to this post.