Last modified: 2014-02-28 23:04:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53023, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51023 - VisualEditor: Trim selections with whitespace on the end
VisualEditor: Trim selections with whitespace on the end
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-09 10:20 UTC by Oliver Keyes
Modified: 2014-02-28 23:04 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Oliver Keyes 2013-07-09 10:20:27 UTC
If you highlight, for example, the first word in this sentence in the VE, you'll highlight "If " rather than "If". Highlight-and-bold or highlight-and-italicise are common workflows, and adding the closing markup after the space is suboptimal for linking or for future users of a page who will use source editing.
Comment 1 James Forrester 2013-07-11 05:35:23 UTC
(In reply to comment #0)
> If you highlight, for example, the first word in this sentence in the VE,
> you'll highlight "If " rather than "If". Highlight-and-bold or
> highlight-and-italicise are common workflows, and adding the closing markup
> after the space is suboptimal for linking or for future users of a page who
> will use source editing.

This isn't necessary; it's caused by the user selecting the space. Do you suggest that we crop these accidentally-selected spaces out? What if the user meant to select them? Are they just screwed at this point? This feels sub-optimal.
Comment 2 Oliver Keyes 2013-07-11 09:35:37 UTC
In what situation would a user want to italicise or link the space at the end of a highlight?
Comment 3 Oliver Keyes 2013-07-11 09:35:55 UTC
I mean, I can see an argument for space highlighting when someone is (for example) deleting text, but...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links