Ticket #29571: 29571.patch
File 29571.patch, 585 bytes (added by , 10 years ago) |
---|
-
quicktags.js
491 491 canvas.value = l + i + t.tagStart + r; // insert self closing tags after the selection 492 492 cursorPos += t.tagStart.length; 493 493 } else { 494 if ( i.charAt(i.length - 1) === '\n' ) { // WebKit 495 i = i.substring(0, i.length - 1); 496 r = '\n' + r; 497 cursorPos -= 1; 498 } 494 499 canvas.value = l + t.tagStart + i + endTag + r; 495 500 cursorPos += t.tagStart.length + endTag.length; 496 501 }