Opened 12 years ago

Last modified 12 years ago

#7754 confirmed Bug

Style tag removed by undo command on Internet Explorer (Ctrl + z, or button)

Reported by: Flavien CROCHARD Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:


Enter in source mode :

<style type="text/css">
  body {
    font-size: 14pt;

Back to wysiwyg mode, enter a letter. Finally, do an undo command, and see the source : the style tag dissappeared.

Change History (6)

comment:1 Changed 12 years ago by Jakub Ś

Status: newpending

I have checked latest stable version 3.5.3, latest from trunk and was not able to reproduce the bug.

Could you tell me what browser are you using and what version of CKEditor? Is it the latest from trunk or one of earlier?

Also have you tested this issue in full page sample? I'm asking because as you probably know style tag should be only placed in head section

Contents from all other samples are placed in body tag of HTML document. Only the full page sample provides the head tag and if style tag is placed inside it, no matter how hard you try you can’t delete it or undo it.

comment:2 Changed 12 years ago by Flavien CROCHARD

Thanks for your reply ! The browser is Internet Explorer 8. All others browsers i tested let the style tag. Even if it's outside the head tag. Thanks if it can be the same for IE !

comment:3 Changed 12 years ago by Jakub Ś

Status: pendingconfirmed
Version: 3.5.4 (SVN - trunk)3.0

Although placing style tags inside body tag is not a valid technique there is some browser inconsistency. IE6, IE7 and IE8 remove the style tag after pressing undo. All other browsers including IE9 leave this tag untouched

comment:4 Changed 12 years ago by Flavien CROCHARD

Ok, however if you disable undo plugin : the Ctrl+Z does the browser undo and removes what your enter without removing the style tag.

comment:5 Changed 12 years ago by Flavien CROCHARD

Well, it's nevertheless a problem. Is there someone who could resolve this ? I try to find some workarounds, but nothing powerfull. Thanks in advance !

comment:6 Changed 12 years ago by Robrecht Siera

Just want to confirm that this is a problem. We can encourage people to install the latest IE browser but for XP that is IE8 and thus at least for that browser a fix would be very welcome.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy