Opened 8 years ago

Closed 8 years ago

#6498 closed Bug (fixed)

[Safari] Insert between paragraphs unifies them

Reported by: AndiU Owned by:
Priority: Must have (possibly next milestone) Milestone: CKEditor 3.5.1
Component: Core : Pasting Version: 3.4.1
Keywords: Safari Cc:

Description

A very annoying bug which does not exists for too long (don´t know the version when it worked ok) is, that when you insert text between two paragraphs they will be unified and the cursor jumps to the end of the second paragraph.

Reproduce it by going to the demo:

  • copy a word into clipboard
  • place your cursor on the end of a paragraph like "... her sick grandmother"
  • paste word from clipboard in
  • see that both paragraphs are merged and cursor jumps down after second paragraph

Safari 5.02 / Mac OS 10.6.4

Change History (8)

comment:1 Changed 8 years ago by AndiU

I know these type of bugs must be boring. Unfortunately CKEditor already worked better before, so this bug is a clear regression from former versions.

Thing is, it makes CKEditor not usable for "real" working, which involves always a lot of copy and paste of text and not only writing it down. With the current behavior this is a real pain in the ass :-(

comment:2 Changed 8 years ago by Garry Yao

Keywords: Safari added; paste merge paragraph removed
Milestone: CKEditor 3.5.1
Priority: NormalHigh
Status: newconfirmed

Indeed a serious issue, reduced test case:

  1. Load the following content:
    <p>line1</p>
    <p>line2</p>
    
  2. Copy first line to clipboard and put the cursor at the end of first line;
  3. Paste with Ctrl-V
  • Actual Result:
    <p>
    	line1line1line2</p>
    <p>
    	&nbsp;</p>
    

comment:3 Changed 8 years ago by Garry Yao

It's very nasty a bug suffers from the "insertHtml" command, AFAIK we can do very few thing here except for opening a webkit bug.

comment:4 in reply to:  3 ; Changed 8 years ago by AndiU

Is the "insertHtml" command new or does Safari recently introduced the issue? There were versions of CKEditor, which worked perfect with paste.

comment:5 in reply to:  4 Changed 8 years ago by Garry Yao

Replying to AndiU:

Is the "insertHtml" command new or ...

We're now doing clipboard purge and finally rely on "insertHtml" command to play the browser paste while before 3.1 browser handles everything, that comes the differences.

comment:6 Changed 8 years ago by Garry Yao

Status: confirmedpending

Right now it becomes WFM on trunk, can you confirm?

comment:7 Changed 8 years ago by AndiU

It seems to work perfect on CKEditor 3.5 (revision 6230).

On current trunk CKEditor 3.5.1 (revision 6253) copy and paste is heavily broken again. Try to paste the text from the website demo into the editor (http://ckeditor.com/demo), this works good. Now copy and paste the first paragraph and you will see it suddenly stops and drops half of the content.

comment:8 Changed 8 years ago by Garry Yao

Resolution: fixed
Status: pendingclosed

Bug confirmed to be fixed by [6143].

@AndiU, please open new ticket for any other issue seen.

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