Changeset 30250
- Timestamp:
- 11/06/2014 07:02:33 AM (10 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-includes/js/quicktags.js
r27857 r30250 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; … … 510 510 } 511 511 512 canvas.focus();513 512 canvas.selectionStart = cursorPos; 514 513 canvas.selectionEnd = cursorPos; 515 514 canvas.scrollTop = scrollTop; 515 canvas.focus(); 516 516 } else { // other browsers? 517 517 if ( !endTag ) {
Note: See TracChangeset
for help on using the changeset viewer.