Opened 12 years ago

Closed 12 years ago

#1378 closed Bug (invalid)

Unpredictable behaviour using Styles

Reported by: david.public Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: FCKeditor 2.4.3
Keywords: Pending Cc:

Description (last modified by Alfonso Martínez de Lizarrondo)

I'm experiencing odd behaviour with Styles based on the Span tag.

You can replicate this in the demo page at http://www.fckeditor.net/demo:

  • Create some paragraphs. eg create 6 paragraphs with the text ('One', 'Two', 'Three', Four', 'Five', 'Six').
  • Select the 5th paragraph and apply the Custom bold style.
  • Select the 2nd and 3rd paragraphs and apply the Custom bold style.
  • Switch to source view and switch back to design view
  • A gap will have appeared before the paragraph 'Four'.
  • Switch to source view and switch back to design view again.
  • More gaps will have appeared, and paragraphs will now appear in the order ('One', 'Four', 'Five', 'Two', 'Three'). Only 'Five' is now bold.

I have experienced different variations, but this is the easiest to replicate. As far as I could tell the problem applied when more than one <span> tag appeared on a page. The first tag seems to get incorrectly closed.

As far as I can tell the bug does affect the saved HTML.

Change History (4)

comment:1 Changed 12 years ago by david.public

This applies to using the editor in IE7. I just tested in FF2 and, while empty lines do appear, the formatting and the content order are preserved.

comment:2 Changed 12 years ago by Alfonso Martínez de Lizarrondo

Description: modified (diff)
Keywords: Pending added; span removed

Please, test anything related to styles with the current nightly as the style system has been rewritten.

comment:3 Changed 12 years ago by david.public

Thank you. I tried a few variations using the Yellow Marker and Green Marker styles (which also use the <span> tag, and as far as I can tell that's working perfectly.

My apologies if I'd overlooked an obvious path for testing that myself.

comment:4 Changed 12 years ago by Martin Kou

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy