Opened 7 years ago

Closed 7 years ago

#9363 closed Bug (invalid)

Inline editing: Copying from one div to other not working if div's has different toolbars

Reported by: Satya Minnekanti Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: IBM Cc: Damian, Teresa Monahan

Description

To reproduce the defect:

Scenario 1:

  1. Open Massive inline editing sample
  1. Click inside 3rd div & add a table with default values.
  1. Enter content in all table cells, select the table and copy it.
  1. Click inside 2nd div and press Ctrl + V or paste.

Expected Result: Content pasted properly, table shown with data in all the cells.

Actual Result: Content not pasted properly. Table not shown & all the data in table cells pasted as simple text.

Scenario 2:

  1. Open Massive inline editing sample
  1. Click inside 1st or 2nd & copy a paragraph
  1. Click inside any other div(for ex: 3rd) and press Ctrl + V or paste.

Expected Result: Content pasted properly.

Actual Result: Content not pasted properly, it's pasted as separate div instead of normal paragraph.

Change History (1)

comment:1 Changed 7 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed

Regarding scenario 1:

First two editables (these on the left) are headers (h2 and h3) and headers can't contain tables. Thus, to handle this situation in the new insertion algorithm we included tags stripping if they can't be handled by the editable in which content is being inserted.

Regarding scenario 2:

This scenario indeed needs a ticket. Entire editable may be selected (and pasted) from inside if it contains <br>. I opened #9534 to target this one.

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