Ticket #2533 (closed Bug: duplicate)

Opened 3 months ago

Last modified 2 months ago

PageBreak code is different in Gecko and IE

Reported by: mayhem Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: FCKeditor 2.6.3
Keywords: Confirmed Cc:

Description

I use PageBreak when edit my topics to divide text on topic summary and topic body. Due to the differencies in Gecko and IE realisation, code like

obj.style.pageBreakAfter="always";

generates different HTML. In Gecko CSS style inserts without ";" but in IE symbol ";" afetr CSS rule exists. So HTML code of bageBreak in Gecko is

<div style="page-break-after: always"><span style="display:none">&nbsp;</span></div>

and in IE is

<div style="page-break-after: always;"><span style="display:none;">&nbsp;</span></div>

So i can't use it to split HTML into two parts in my PHP code.

Change History

Changed 3 months ago by arczi

  • keywords Confirmed added; pagebreak removed

Confirmed with IE7 and FF3.

Right now you can split it by a regular expression

$pages = preg_split('/<div style="page-break-after: always;?"><span style="display:none;?">&nbsp;<\/span><\/div>/', $text);

Changed 2 months ago by alfonsoml

  • status changed from new to closed
  • resolution set to duplicate

Dup of #1709, so dup of #1810

Note: See TracTickets for help on using tickets.