Changeset 29884
- Timestamp:
- 10/12/2014 11:11:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/quicktags.js
r29878 r29884 385 385 canvas.value = text.substring(0, startPos) + content + text.substring(endPos, text.length); 386 386 387 canvas.focus();388 387 canvas.selectionStart = startPos + content.length; 389 388 canvas.selectionEnd = startPos + content.length; 390 389 canvas.scrollTop = scrollTop; 390 canvas.focus(); 391 391 } else { 392 392 canvas.value += content; … … 511 511 } 512 512 513 canvas.focus();514 513 canvas.selectionStart = cursorPos; 515 514 canvas.selectionEnd = cursorPos; 516 515 canvas.scrollTop = scrollTop; 516 canvas.focus(); 517 517 } else { // other browsers? 518 518 if ( !endTag ) {
Note: See TracChangeset
for help on using the changeset viewer.