Opened 8 years ago

Last modified 8 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:

Description

Enter in source mode :

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

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 8 years ago by Jakub Ś

Status: newpending

I have checked latest stable version 3.5.3, latest from trunk http://nightly.ckeditor.com/demo 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 http://www.w3schools.com/TAGS/tag_style.asp.

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 8 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 8 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 8 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 8 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 8 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy