Ticket #7942 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

[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

comment:1 Changed 3 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 3 years ago by garry.yao

  • Status changed from new to confirmed

#6194 has been marked as DUP.

comment:3 Changed 3 years ago by satya

  • Cc satya_minnekanti@… added

comment:4 Changed 3 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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy