Opened 14 years ago

Closed 12 years ago

#6702 closed Bug (expired)

insertElement on top of text selection

Reported by: Garry Yao Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: Umbrella Discussion Cc:

Description

Unlike "insertHtml", "insertElement" invoking that happens on a text selection in structure like table and list either leaves a malformed DOM or even an error.

The following tickets are associated:


#6700
Insert element over selection breaks DOM

#6432
Error occurring when trying to insert a table over a highlighted list

Change History (2)

comment:1 Changed 14 years ago by Garry Yao

Keywords: Umbrella Discussion added

One idea is to throw the task to browser (by translating to editor::insertHtml) to gain the same result as the browser dependent "insertHtml", but then bugs are also inherited, on the other hand, it could be done with efforts that shapes range::extractContent to achieve the same goal.

comment:2 Changed 12 years ago by Piotrek Koszuliński

Resolution: expired
Status: newclosed
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