Select an inline node (e.g. an inline image) on it's own (i.e. no whitespace either side of it), and trying to copy will throw an exception (ve.dm.Document.js:786 selection[0].range is undefined)
Version: unspecified
Severity: normal
Select an inline node (e.g. an inline image) on it's own (i.e. no whitespace either side of it), and trying to copy will throw an exception (ve.dm.Document.js:786 selection[0].range is undefined)
Version: unspecified
Severity: normal
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | Jdforrester-WMF | T50426 VisualEditor: Pre-beta needs (tracker) | |||
Resolved | Esanders | T50604 VisualEditor: Selecting and copying one node throws an exception |
No exception now, it just fails to copy at all if you select a focusable node.
In what looks like a separate bug, if you select around a focusable node, pasting creates a new paragraph, e.g.
Foo "Bar [1] Baz" Quux
copy range marked with double quotes ([1] is a reference) then paste in the middle of Qu_ux and you get:
Foo Bar [1] Baz Qu
Bar [1] Baz
ux
instead of
Foo Bar [1] Baz QuBar [1] Bazux
Nope, ignore comment 5, it adds the linebreaks no matter which way the selection is generated. Similar outcome but apparently independent.