Opened 14 years ago

Closed 12 years ago

#5696 closed Bug (fixed)

IE : Cursor moves to the start of paragraph in the Pasted Text

Reported by: Satya Minnekanti Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.2
Keywords: IBM Cc: Damian, joek

Description

To reproduce the defect

  1. Open Ajax sample.
  1. Paste the following text in to the Editor "The wisest man has still got something new to learn"

Expected Result: Data will be pasted with the cursor stayed at the end of the pasted line.

Actual Result: Data will be pasted with cursor moved to the front of the pasted line

  1. Move cursor to the end of the line with pasted data
  1. Attempt to paste the previous text at the end of the line.

Expected Result: Data will be pasted at the end of the current line.

Actual Result: Data is pasted on a a new line

Tested against IE6&7

Change History (8)

comment:1 Changed 14 years ago by Garry Yao

It's related to the browser's native paste feature, we're intended to deal with it at #5309.

comment:2 Changed 14 years ago by Joe Kavanagh

Milestone: CKEditor 3.4

comment:3 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.4CKEditor 3.5

comment:4 Changed 14 years ago by Sa'ar Zac Elias

Status: newpending

I'm not able to reproduce the bug on trunk anymore.

comment:5 in reply to:  4 Changed 14 years ago by Satya Minnekanti

Replying to Saare:

I'm not able to reproduce the bug on trunk anymore.

The first issue is not reproducible but the second issue from step 3 is still reproducible.

  1. Move cursor to the end of the line with pasted data
  1. Attempt to paste the previous text at the end of the line.

Expected Result: Data will be pasted at the end of the current line.

Actual Result: Data is pasted on a a new line

comment:6 Changed 13 years ago by Garry Yao

Milestone: CKEditor 3.4.2

The second case is reproducible, but I'm sure the result depends on browsers quite much, some browser might choose to treated it a new line, while some not, for me in this case the former result is better.

comment:7 Changed 13 years ago by Garry Yao

Cc: damo,joekdamo, joek
Component: GeneralCore : Pasting

The result is highly related to the source of the copied content, I could get the desired result (paste appended) with the following steps in all IEs:

  1. Load the editor with following text:
    <p>A single paragraph</p>
    
  2. Select the full paragraph using Select All or click on "p" element of the elements path bar.
  3. Copy with Ctrl-C.
  4. Press End to place cursor at the end of block.
  5. Paste with Ctrl-V.

But it fails if I replicate step.2 in another way:

 2. Select the full paragraph using mouse drag over the entire text range

Anyway, ticket desc. should be updated to be more specific as it's really a case-by-case thing.

comment:8 Changed 12 years ago by Jakub Ś

Resolution: fixed
Status: pendingclosed

This is no longer reproducible. Tested in CKEditor 3.6.3.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy