Lines Matching refs:selection
132 var selection = DWgetSelection(this);
133 if(selection.getLength() > 0) {
136 var search = "\n"+this.value.substr(0,selection.start);
153 if (match2 && this.value.substr(selection.start).match(/^($|\r?\n)/)) {
155 this.value.substr(selection.start);
156 selection.start = linestart + 1;
157 selection.end = linestart + 1;
158 DWsetSelection(selection);
175 selection.start = selection.start - 2;
176 selection.end = selection.start;
179 this.value.substr(selection.start);
180 selection.start = linestart;
181 selection.end = linestart;
183 DWsetSelection(selection);
193 selection.start = selection.start + 2;
194 selection.end = selection.start;
195 DWsetSelection(selection);