(url: string, filename: string)
| 217 | } |
| 218 | |
| 219 | onReplaceUpload(url: string, filename: string): string { |
| 220 | const temporary = getTemporaryUploadString(filename); |
| 221 | const start = this.textarea.value.indexOf(temporary); |
| 222 | const file = filename.split('.'); |
| 223 | file.pop(); |
| 224 | const position = [start, start + temporary.length]; |
| 225 | const alt = file.join('.'); |
| 226 | const replacement = ``; |
| 227 | |
| 228 | return concatReplacement(this.textarea, position, replacement); |
| 229 | } |
| 230 | } |
no test coverage detected