Patch #33958 » 0001-Jump-to-end-of-line-for-ul-ol-and-quote-when-line-is.patch
| public/javascripts/jstoolbar/jstoolbar.js | ||
|---|---|---|
|
} else if (typeof(this.textarea["setSelectionRange"]) != "undefined") {
|
||
|
this.textarea.value = this.textarea.value.substring(0, start) + subst +
|
||
|
this.textarea.value.substring(end);
|
||
|
if (sel) {
|
||
|
if (sel || (!prefix && start === end)) {
|
||
|
this.textarea.setSelectionRange(start + subst.length, start + subst.length);
|
||
|
} else {
|
||
|
this.textarea.setSelectionRange(start + prefix.length, start + prefix.length);
|
||