Opened 16 years ago

Closed 16 years ago

#2533 closed Bug (duplicate)

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 (2)

comment:1 Changed 16 years ago by Artur Formella

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);

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

Resolution: duplicate
Status: newclosed

Dup of #1709, so dup of #1810

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