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
Keywords: | Umbrella Discussion added |
---|
comment:2 Changed 12 years ago by
Resolution: | → expired |
---|---|
Status: | new → closed |
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.