#3671: Inserting Page break is introducing new paragraph
---------------------------+------------------------------------------------
 Reporter:  garry.yao      |       Owner:  garry.yao   
     Type:  Bug            |      Status:  new         
 Priority:  Normal         |   Milestone:  CKEditor 3.0
Component:  Core : Styles  |     Version:              
 Keywords:  Confirmed      |  
---------------------------+------------------------------------------------
Description changed by garry.yao:

Old description:

> === Reproducing Procedures ===
>  1. Open  the ''replace by class'' example page in FF;
>  1. Click on 'New Page' to empty document content;
>  1. Click on 'Insert Page Break for Printing' to insert a page break;
>  1. Click on the newly introduced page break fake element;
>   * Expected Result: A new paragraph is created before it.
> {{{
> <div style="page-break-after: always;">
>                 <span style="display: none;">&nbsp;</span></div>
> }}}
>   * Actual Result: Javascript error thrown.
> {{{
> <p>
> </p>
> <h1>
>         <br />
> </h1>
> }}}

New description:

 === Reproducing Procedures ===
  1. Open  the ''replace by class'' example page in FF;
  1. Click on 'New Page' to empty document content;
  1. Click on 'Insert Page Break for Printing' to insert a page break;
  1. Click on the newly introduced page break fake element;
   * Expected Result: A new paragraph is created before it.
 {{{
 <div style="page-break-after: always;">
                 <span style="display: none;">&nbsp;</span></div>
 }}}
   * Actual Result: Javascript error thrown.
 {{{
 === Reproducing Procedures ===
  1. Open  the ''replace by class'' example page in FF;
  1. Click on 'New Page' to empty document content;
  1. Click on 'Insert Page Break for Printing' to insert a page break;
  1. Click on the newly introduced page break fake element;
   * Expected Result: A new paragraph is created before it.
 {{{
 <div style="page-break-after: always;">
                 <span style="display: none;">&nbsp;</span></div>
 }}}
   * Actual Result:
 {{{
 <p>
    <br /></p>
 <p>
 <div style="page-break-after: always;">
                 <span style="display: none;">&nbsp;</span></div>
 </p>

 }}}

 }}}

--

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3671#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
FCKeditor-Trac mailing list
FCKeditor-Trac@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to