Opened 15 years ago

Closed 11 years ago

#5388 closed Bug (fixed)

[IE][Chrome] Strange behavior on copy & paste <span>

Reported by: pomu0325 Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.0
Keywords: Cc: pomu@…

Description

To Reproduce

  • open http://ckeditor.com/demo with IE8 or Chrome
  • switch to source mode
  • erase all text, and type
    <span>foo</span>
    
  • switch to WYSIWYG
  • select "foo" and Ctrl+C to copy
  • press "Enter" to break line
  • Ctrl+P to paste
  • switch to source mode
    • [IE] <span> is generated twice
      <p>
      	<span>foo</span></p>
      <p>
      	<span><span>foo</span></span></p>
      
    • [Chrome] additional surrounding <div> is created
      <p>
      	<span>foo</span></p>
      <p>
      	&nbsp;</p>
      <div style="font-family: Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
      	<p>
      		<span>foo</span></p>
      </div>
      
    • [FF] works fine!
      <p>
      	<span>foo</span></p>
      <p>
      	<span>foo</span></p>
      

Change History (3)

comment:1 in reply to:  description Changed 15 years ago by pomu0325

Cc: pomu@… added

Replying to pomu0325:

  • Ctrl+P to paste

typo Ctrl+P -> Ctrl+V

comment:2 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: SVN (CKEditor) - OLD3.0

Firefox and Opera work as expected.

In all IE's starting from CKEditor 3.2.1 span has got doubled.

In Webkit till CKEditor 3.5.2 span was pasted with an extra div. From CKEditor 3.5.3 only paragraph has been pasted.

<p>
	<span>foo</span></p>
<p>
	foo</p>

comment:3 Changed 11 years ago by Piotrek Koszuliński

Resolution: fixed
Status: confirmedclosed

This issue was fixed in Webkit long time ago. On IE spans are not doubled too.

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