Opened 10 years ago

Closed 10 years ago

#2697 closed Bug (worksforme)

Page Break in the middle of paragraph closes opening 'p' tag before <hr> and adds <p>&nbsp;</p> to ending 'p' tag when toggling to source

Reported by: Chris Barretto Owned by:
Priority: Normal Milestone:
Component: UI : Source View Version: FCKeditor 2.6.3
Keywords: Pending WorksForMe Cc:

Description

  1. To reproduce add the following to 'Source' window (this is simulating a paste from word into regular editing window, stripping tags, and then clicking 'Source'):

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin leo. Ut consequat magna ut purus. Nullam faucibus turpis at sem. Morbi eget augue. Cras blandit dictum magna. Vivamus sed nulla sit amet tortor eleifend luctus. Integer odio. Aliquam hendrerit mattis quam. Cras lobortis erat porttitor risus. Cras sed dolor eu diam cursus pretium. Donec urna.</p>

  1. Toggle to normal view and insert a page break somewhere in the middle of the paragraph and toggle back to 'Source'. You should see something like the following:

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin leo. Ut consequat magna ut purus. Nullam faucibus turpis at sem. Morbi eget augue. Cras blandit dictum magna. Vivamus sed nulla sit amet tortor eleifend <hr class="page_break" /> luctus. Integer odio. Aliquam hendrerit mattis quam. Cras lobortis erat porttitor risus. Cras sed dolor eu diam cursus pretium. Donec urna.</p>

  1. Toggle back to normal view and you should see the paragraph split accordingly with the page break dividing the appropriate section.
  1. Toggle back to 'Source' and this is what results:

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin leo. Ut consequat magna ut purus. Nullam faucibus turpis at sem. Morbi eget augue. Cras blandit dictum magna. Vivamus sed nulla sit amet tortor eleifend</p> <hr class="page_break" /> luctus. Integer odio. Aliquam hendrerit mattis quam. Cras lobortis erat porttitor risus. Cras sed dolor eu diam cursus pretium. Donec urna. <p>&nbsp;</p>

  1. What should be expected is:

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin leo. Ut consequat magna ut purus. Nullam faucibus turpis at sem. Morbi eget augue. Cras blandit dictum magna. Vivamus sed nulla sit amet tortor eleifend</p> <hr class="page_break" /> <p>luctus. Integer odio. Aliquam hendrerit mattis quam. Cras lobortis erat porttitor risus. Cras sed dolor eu diam cursus pretium. Donec urna.</p>

  1. The last toggle is just to illustrate what is going on, but when the text area gets saved from the normal view without the toggle, it saves with the above result. This is with the most current release 2.6.3

Change History (2)

comment:1 Changed 10 years ago by Artur Formella

Keywords: Pending WorksForMe added; page break extra p tag removed

I have always (FF and IE)

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin leo. Ut consequat magna ut purus. Nullam faucibus turpis at sem. Morbi eget augue.</p>
<div style="page-break-after: always"><span style="display: none">&nbsp;</span></div>
<p>Cras blandit dictum magna. Vivamus sed nulla sit amet tortor eleifend luctus. Integer odio. Aliquam hendrerit mattis quam. Cras lobortis erat porttitor risus. Cras sed dolor eu diam cursus pretium. Donec urna.</p>

How you get "<hr class="page_break" />" ?

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

Resolution: worksforme
Status: newclosed

Expired.

I get the same results as Arczi, so you must be using another plugin instead of the default page break

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