File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Binaries for programs and plugins
2
+ rwtxt
2
3
* .exe
3
4
* .exe~
4
5
* .dll
Original file line number Diff line number Diff line change @@ -229,15 +229,18 @@ function onUploadFinished(file) {
229
229
file . xhr . getResponseHeader ( "Location" ) +
230
230
')' ;
231
231
232
+ var newLine = "\n"
232
233
document . getElementById ( "editable" ) . value = (
233
234
textBefore +
234
- extraText +
235
+ extraText +
236
+ newLine +
235
237
textAfter
236
238
) ;
237
239
240
+ console . log ( "SELECT LINK" )
238
241
// Select the newly-inserted link
239
- document . getElementById ( "editable" ) . selectionStart = cursorPos ;
240
- document . getElementById ( "editable" ) . selectionEnd = cursorPos + extraText . length ;
242
+ document . getElementById ( "editable" ) . selectionStart = cursorPos + extraText . length + newLine . length ;
243
+ document . getElementById ( "editable" ) . selectionEnd = cursorPos + extraText . length + newLine . length ;
241
244
// expand textarea
242
245
autoExpand ( document . getElementById ( "editable" ) ) ;
243
246
// trigger a save
You can’t perform that action at this time.
0 commit comments