Page MenuHomePhabricator

VisualEditor: Links should not be allowed to be created spanning only whitespace
Closed, ResolvedPublic

Description

Select some whitespace and open the link inspector and create the link.
The SurfaceFragment.trimRange method is not trimming the space if the range only contains space.

The correct behavior should be to trim the space then insert the location text into the document.


Version: unspecified
Severity: normal

Details

Reference
bz42839