(
getReplacement: GetReplacementFn,
onReplaced: ReplacedFn,
forcedType?: CursorType,
)
| 203 | } |
| 204 | |
| 205 | async replaceWord( |
| 206 | getReplacement: GetReplacementFn, |
| 207 | onReplaced: ReplacedFn, |
| 208 | forcedType?: CursorType, |
| 209 | ): Promise<Replacement> { |
| 210 | const { result, position, replacement } = this.getResult( |
| 211 | getReplacement, |
| 212 | forcedType, |
| 213 | ); |
| 214 | onReplaced(result); |
| 215 | await focusInput(this.textarea, position); |
| 216 | return { result, position, replacement }; |
| 217 | } |
| 218 | |
| 219 | onReplaceUpload(url: string, filename: string): string { |
| 220 | const temporary = getTemporaryUploadString(filename); |
no test coverage detected