Add editor.html dropdown Soft Wrap

This commit is contained in:
Julian Viereck 2011-01-28 19:33:48 +08:00 • committed by Fabian Jakobs
commit e6e01a3ed1
4 changed files with 41 additions and 16 deletions

View file

@ -656,6 +656,7 @@ var EditSession = function(text, mode) {
if (wrapLimit != this.$wrapLimit) {
this.$wrapLimit = wrapLimit;
this.$updateWrapData(0, this.getLength() - 1);
this._dispatchEvent("changeWrapMode");
}
};

View file

@ -293,18 +293,18 @@ var VirtualRenderer = function(container, theme) {
this.getMouseEventTarget = function() {
return this.content;
};
this.getTextAreaContainer = function() {
return this.scroller;
};
this.moveTextAreaToCursor = function(textarea) {
var pos = this.$cursorLayer.getPixelPosition();
if (!pos)
return;
textarea.style.left = (pos.left + this.$padding) + "px";
textarea.style.top = pos.top + "px";
textarea.style.top = pos.top + "px";
};
this.getFirstVisibleRow = function() {