Last modified: 2014-02-28 23:04:05 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 T55931, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53931 - VisualEditor: Move to using white-space: pre-wrap instead of using nbsp's to fake spaces
VisualEditor: Move to using white-space: pre-wrap instead of using nbsp's to ...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-09 01:52 UTC by Roan Kattouw
Modified: 2014-02-28 23:04 UTC (History)
5 users (show)

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


Attachments

Description Roan Kattouw 2013-09-09 01:52:03 UTC

    
Comment 1 Roan Kattouw 2013-09-09 01:54:22 UTC
From an email conversation I had with Aryeh in January 2012:

(Since I'm thinking about canonicalization of whitespace, a tip: set
white-space: pre-wrap on any contenteditable regions you use, and
wherever you use them.  This will stop you from needing to use nbsp's
in ways they were never intended to be used, which causes a variety of
subtle bugs.  See
<http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#canonical-space-sequences>
for a basic explanation, and click the first "View Comments" at
<http://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#the-inserttext-command>
for a more detailed explanation of how nbsp substitution works in
practice.)

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


Navigation
Links