Ticket #1378 (closed Bug: invalid)

Opened 2 years ago

Last modified 2 years ago

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 alfonsoml) (diff)

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

Changed 2 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.

Changed 2 years ago by alfonsoml

  • keywords Pending added; span removed
  • description modified (diff)

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

Changed 2 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.

Changed 2 years ago by martinkou

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.