- Timestamp:
- 01/01/18 14:20:30 (8 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.js
r3361 r3642 281 281 this.textarea.setSelectionRange(start + subst.length, start + subst.length); 282 282 } else { 283 this.textarea.setSelectionRange(start + prefix.length, start + prefix.length); 283 if (typeof(fn) == 'function') { 284 this.textarea.caretPos -= start + subst.length; 285 } else { 286 this.textarea.setSelectionRange(start + prefix.length, start + prefix.length); 287 } 284 288 } 285 289 this.textarea.scrollTop = scrollPos;
Note: See TracChangeset
for help on using the changeset viewer.