Changes between Initial Version and Version 4 of Ticket #8231
- Timestamp:
- Feb 12, 2012, 6:11:50 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8231
-
Property
Version
changed from
3.5.3
to3.0
-
Property
Summary
changed from
Paste with CKEditor Full Page mode in Chrome on Mac generates bad HTML
toPaste or PaasteFromWord with CKEditor in Webkit and Opera inserts empty paragraphs.
-
Property
Version
changed from
-
Ticket #8231 – Description
initial v4 1 We are experiencing this bug on 3.5.3, in full page mode. Verified on the full page nightly build. Didn't check the demo because it's not in full page mode. 1 Steps to reproduce: 2 1. Copy the below code taken from http://ckeditor.com/demo 3 {{{ 4 <h1> 5 <img alt="" src="http://a.cksource.com/c/1/inc/img/demo-little-red.jpg" style="margin-left: 10px; margin-right: 10px; float: left; width: 120px; height: 168px;" />Little Red Riding Hood</h1> 6 }}} 7 2. Go to CKEditor sample (any sample) 8 3. Clear editor contents using Command+A and Backspace 9 4. Paste the demo contents using Command+V 10 5. Switch to source 2 11 3 - Open Chrome (12.0.742.122) on a Mac (OS X version 10.6.3). 4 - Go to http://ckeditor.com/demo and Select All. Copy to the clipboard. 5 - Go to http://nightly.ckeditor.com/ and click on the demos and then click on the full page Basic sample. 6 - Select All, then delete so you've got a blank document. 7 - Use Command-V to paste the Little Red Riding Hood text into the document. 8 - Switch to Source view. 1st paragraph holds empty HTML document. Pasted copy follows that paragraph. 9 - Switching between code and WYSIWYG view keeps adding empty paragraphs above the pasted copy. 12 **Result:**In full page mode there will be extra empty paragraph right after body tag and from CKEditor 3.5.4 rev [6698] there will also be extra empty paragraph right before closing body tag. 13 In any non full page sample you will see empty paragraph at the top and form CKE 3.5.4 also at the bottom 10 14 11 On Mac Safari (4.0.4) these steps add an extra paragraph with a charset meta tag. Switching between code view and WYSIWYG view moves the meta tag into the <head> section and creates 2 empty paragraphs above the pasted content, but thereafter does not continue adding paragraphs. However, if you Undo all changes and view the Source, you'll have 2 <head> sections, each with the added meta tag that wasn't part of the original document. 15 ----- 12 16 13 No problems occur if you use the Paste From Word tool. 17 1. Copy sample list from the attached listTest.doc 18 2. Go to CKEditor sample (any sample) 19 3. Clear editor contents using Command+A and Backspace 20 4. Paste the demo contents using Command+V 21 5. Switch to source 14 22 15 No problems occur on Mac Firefox. 23 **Result:**You will see empty paragraph at the top and form CKE 3.5.4 also at the bottom 24 ---- 16 25 17 No problems occur in Windows. (Chrome, Safari, and Opera add an empty paragraph at the top of the pasted copy but it's easily removed.) 26 **Paragraph at the top has been reproducible in Opera and Webkit from CKEditor 3.0** 27 28 **Paragraph at the bottom has been reproducible in Opera and Safari from CKE 3.5.4 rev [6698]** 29 30 This issue is reproducible in all Operating Systems. 31 32 **NOTE:** From CKEditor 3.5.3 if you press backspace two or more times (Look step 3) it is possible to delete the default paragraph. If you do that and then paste the text from demo the paragraph at the top will not be present.