codemirror / codemirror5

In-browser code editor (version 5, legacy)
http://codemirror.net/5/
MIT License
26.84k stars 4.97k forks source link

Linewrapping not working in v3.11 #1400

Closed markwemekamp closed 11 years ago

markwemekamp commented 11 years ago

Please close this issue, linewrapping works fine in CodeMirror. It turned out the problem was a custom jquery wrapper for the control that doesn't take the lineWrapper into account. I assumed the jquery wrapper came out of the box with the CodeMirror script.

Original issue

Linewrapping does not seem to work in the current version of CodeMirror

The output: codemirror

The javascript call:

$('#customCodeEditor').codeTextField({
    matchBrackets:true, 
    lineNumbers:true, 
    lineWrapping:true, 
    width:"450px", 
    height:"200px", 
    codeLanguage:"text/x-csharp"
});

Tested in release 3.1 and 3.11 of CodeMirror Tested in IE 9 and and Chrome v25 on Windows 7

marijnh commented 11 years ago

Blame the jQuery plug-in, I guess. The editor's support for line wrapping is definitely still working. See http://codemirror.net/demo/folding.html , which has line wrapping enabled.