Reformat
This commit is contained in:
parent
4a23cc057e
commit
fbfb8b419f
@ -579,8 +579,11 @@ class BesService {
|
|||||||
if (this.textAreaService) {
|
if (this.textAreaService) {
|
||||||
let text = this.textAreaService.textAreaEl.value
|
let text = this.textAreaService.textAreaEl.value
|
||||||
this.textAreaService.textAreaEl.value =
|
this.textAreaService.textAreaEl.value =
|
||||||
text.substring(0, match.match.offset) + replacement + text.substring(match.match.offset + match.match.length)
|
text.substring(0, match.match.offset) +
|
||||||
this.textAreaService.textAreaEl.selectionStart = this.textAreaService.textAreaEl.selectionEnd = match.match.offset
|
replacement +
|
||||||
|
text.substring(match.match.offset + match.match.length)
|
||||||
|
this.textAreaService.textAreaEl.selectionStart =
|
||||||
|
this.textAreaService.textAreaEl.selectionEnd = match.match.offset
|
||||||
}
|
}
|
||||||
this.clearMistakeMarkup(el)
|
this.clearMistakeMarkup(el)
|
||||||
// In my opinion, this approach provides the most straightforward solution for repositioning mistakes after a change.
|
// In my opinion, this approach provides the most straightforward solution for repositioning mistakes after a change.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user