Last modified: 2014-03-26 15:59:47 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 T55911, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53911 - Long lines don't word wrap using CodeEditor extension
Long lines don't word wrap using CodeEditor extension
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CodeEditor (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 59924
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-08 14:59 UTC by Technical 13
Modified: 2014-03-26 15:59 UTC (History)
4 users (show)

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


Attachments

Description Technical 13 2013-09-08 14:59:20 UTC
Using the new code editor is very difficult when long strings of code can't be rendered on one screen.  There needs to be a word wrap capability.
Comment 1 Derk-Jan Hartman 2013-12-31 11:23:06 UTC
Quite easy to do with

session.setUseWrapMode(true);
session.setWrapLimitRange(120, 120);

It defaults to 80 columns it seems. There is also a hook to allow you to do this yourself:

Demo: https://en.wikipedia.org/w/index.php?title=User%3ATheDJ%2Fcommon.js&diff=588508535&oldid=584824999

I guess we can fight over weather or not this should be set by default.
Comment 2 Technical 13 2014-03-25 22:51:35 UTC
It needs to be an option from the ui.  I don't care if it is toggled by default or not.
Comment 3 Andre Klapper 2014-03-26 11:44:14 UTC
Request for new functionality which wasn't there before => severity==enhancement

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


Navigation
Links