Opened 13 years ago

Last modified 13 years ago

#7942 confirmed Bug

[Webkit] Paste elements carries applied style

Reported by: Garry Yao Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.0
Keywords: Webkit Cc: satya_minnekanti@…

Description

  1. Append the following styles to the content.css file:
    p,strong
    {
    	border: 1px dotted #000;
    }
    
    
  2. Load the editor with following content:
    <p><strong>paragraph1</strong></p>
    <p>paragraph2</p>
    
  3. Copy all content and paste at the end of doc.
  • Actual Result: The computed style of the content is pasted as inline style.

Change History (4)

comment:1 Changed 13 years ago by Garry Yao

Another different way to reproduce it:

  1. Load the editor with the following:
    <p>para[graph</p>
    <h1>head]ing1</h1>
    
  2. Copy the selected text;
  3. Put cursor at the end of heading element;
  4. Paste the clipboard content
  • Actual Result: The first pasted line has a different font style with the paste in block.

comment:2 Changed 13 years ago by Garry Yao

Status: newconfirmed

#6194 has been marked as DUP.

comment:3 Changed 13 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added

comment:4 Changed 13 years ago by Garry Yao

The ticket tc is already fixed in latest Chrome, while tc from the above comment remains.

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