Ticket #6664 (closed Bug: fixed)
Extra Space between Page Breaks after moving from Source to Wysiwyg mode.
| Reported by: | naresh.sivaraman | Owned by: | garry.yao |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.6 |
| Component: | General | Version: | 3.4.2 |
| Keywords: | Oracle | Cc: |
Description
Tested in IE8.
To reproduce: (1)Add two page breaks on the editor. (2)Remove the line(gap) between them. (3)Go to source and come back to wysiwyg. (4)The line and the gap is back.
Issue is happening because on doing step 2, the div of the second page break falls inside the <p>. This can be seen when we move to source. So, when we come back to wysiwyg, the <p> is closed with a </p> and the div is seperate.
Attachments
Change History
comment:1 Changed 3 years ago by garry.yao
- Status changed from new to confirmed
- Milestone set to CKEditor 3.5.1
We've been suffering from the problem that the fake elements (image) that we use were treated by the browser as they were, even it's been displayed as block.
After 3.4, we introduced the contenteditable support, a nice substitution of fake elements in certain cases, the advantages include:
- True semantic (no more '_cke_real_element_type' );
- Better performance on output(no fake element transformation);
The patch propose an attempt in this approach.
comment:3 Changed 2 years ago by garry.yao
- Status changed from confirmed to review
- Owner set to garry.yao
The bug affects also FF.
comment:5 Changed 2 years ago by Saare
- Status changed from review to review_failed
Patch should be updated.
comment:7 Changed 2 years ago by Saare
- Status changed from review to review_failed
- Add a page break. Click it.
- See that the format combo displays div. Open the combo and click on div.
Note that a bookmark is being added above.
comment:8 Changed 2 years ago by garry.yao
- Status changed from review_failed to review
Ok, I've made a change to styles plugin which disallows style change on read-only blocks.
comment:9 Changed 2 years ago by Saare
- Status changed from review to review_failed
The object now becomes unselectable thus it cannot be dragged (IE at least). This is counterintuitive. Note that this attribute should not be outputed, in any case.
comment:11 Changed 2 years ago by Saare
- Status changed from review to review_failed
- Create the following selection:
<p> text [text text</p> <div style="page-break-after: always;" title="Page Break"> <span style="display: none;"> </span></div> <p> text text] text</p>
- In the format combo, choose "heading 2".
Result: div is transformed into h2.
Also, on output, the page break should not have the title attribute.
comment:12 Changed 2 years ago by garry.yao
- Status changed from review_failed to review
The style application issue is a current editor limitation, filed #7694.
comment:14 Changed 2 years ago by garry.yao
Fixed with [6764], thanks Saar for the high quality review.
comment:15 Changed 2 years ago by garry.yao
- Status changed from review_passed to closed
- Resolution set to fixed
