Add LoreIpsum TextDocument in editor.html. Fix bug in Document.documentToScreenRow() and set Document.wrapLimit to 80.

This commit is contained in:
Julian Viereck 2011-01-09 11:18:03 +01:00
commit 8b6ba9f702
3 changed files with 41 additions and 22 deletions

View file

@ -773,7 +773,7 @@ var Document = function(text, mode) {
(function() {
this.$wrapLimit = 24;
this.$wrapLimit = 80;
this.$useWrapMode = false;
this.setUseWrapMode = function(useWrapMode) {
var _self = this;
@ -933,10 +933,7 @@ var Document = function(text, mode) {
this.documentToScreenRow = function(row) {
if (!this.$useWrapMode) {
return {
row: row,
column: this.documentToScreenColumn(row, column)
}
return row;
}
var wrapData = this.$wrapData;