Add editor.html dropdown Soft Wrap
This commit is contained in:
parent
fa7bfdeb10
commit
e6e01a3ed1
4 changed files with 41 additions and 16 deletions
|
|
@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue