Add LoreIpsum TextDocument in editor.html. Fix bug in Document.documentToScreenRow() and set Document.wrapLimit to 80.
This commit is contained in:
parent
a3ff06a9e3
commit
8b6ba9f702
3 changed files with 41 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue