Opened 4 years ago

Last modified 4 years ago

#12410 confirmed Bug

[Blink, Webkit] Pasting plain text into styles text is causing text formatting lost.

Reported by: Sufian Saory Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 4.0
Keywords: Blink Webkit Cc:

Description (last modified by Jakub Ś)

Copying plain text, say from notepad, and pasting into editor in Chrome is causing the text format to be messed up.

Steps to reproduce:

  1. use the attached sample html file
  2. copy some text from notepad.
  3. paste into editor

Browser and OS:

  1. Google Chrome
  2. Windows 8

Edit:

  1. Use Blink or Webkit browser
  2. Load any sample and switch to source mode
  3. Paste below code and switch to wysiwyg
    <table >
    	<tbody>
    	<tr>
    		<td>
    			<span style="font-size:23pt">explorer deliver</span>		
    		</td>
    	</tr>
    	</tbody>
    </table>
    
  4. Type "some text" in notepad and copy this text with ctrl+C
  5. Paste this text in explorer del^iver

Result: Span is removed.

This problem can be reproduced in Blink and Webkit brwosers from CKEditor 4.0. I was able to reproduce this in Windows and Linux but not Mac.

Attachments (2)

source.html (7.0 KB) - added by Sufian Saory 4 years ago.
source html file
chromePasteError.png (256.9 KB) - added by Sufian Saory 4 years ago.

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by Sufian Saory

Attachment: source.html added

source html file

comment:1 Changed 4 years ago by Jakub Ś

Keywords: Chrome added; copy paste plain text chrome removed
Status: newpending
Version: 4.4.4

Could I ask you to provide more details here? Perhaps a screen cast to see what exactly is happening.

  1. You have attached HTML file. I assume you want to have it opened in notepad and then paste content from it into editor - is that correct?
  2. What exactly is messed up? There is no indentation, some attributes get removed?

Changed 4 years ago by Sufian Saory

Attachment: chromePasteError.png added

comment:2 Changed 4 years ago by Sufian Saory

Steps to reproduce:

  1. Open the attached html file in any html editor and copy the html.
  2. Go to source mode of editor.
  3. Paste the copied html into editor.
  4. Go back to wysiwyg mode.
  5. Open notepad and write some text there. Copy some text from notepad.
  6. Paste the copied text into editor.

Browser and OS:

  1. Google Chrome
  2. Windows 8

Please see the attached chromePasteError.png for visual explanation.

Thanks

Last edited 4 years ago by Sufian Saory (previous) (diff)

comment:3 Changed 4 years ago by Jakub Ś

Description: modified (diff)
Keywords: Blink Webkit added; Chrome removed
Summary: Copy pasting plain text in google Chrome is causing text formatting to be messed up[Blink, Webkit] Pasting plain text into styles text is causing text formatting lost.
Version: 4.0

comment:4 Changed 4 years ago by Jakub Ś

Status: pendingconfirmed

Thank you. I have managed to reproduce this problem with details you have provided.

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