fix: markdown editor not working
This commit is contained in:
2 files changed
+12
-11
No files matched your search
@@ -32,7 +32,7 @@
|
||||
str: string,
|
||||
startIndex: number,
|
||||
endIndex: number,
|
||||
replacement: string,
|
||||
replacement: string
|
||||
) {
|
||||
return str.substring(0, startIndex) + replacement + str.substring(endIndex)
|
||||
}
|
||||
@@ -49,7 +49,7 @@
|
||||
textArea.value,
|
||||
startPos,
|
||||
endPos,
|
||||
newText,
|
||||
newText
|
||||
)
|
||||
|
||||
textArea.focus()
|
||||
@@ -60,7 +60,7 @@
|
||||
}
|
||||
|
||||
let uploadingImage = $state(false)
|
||||
let image: any = $state()
|
||||
let image = $state<any>(null)
|
||||
|
||||
const shortcuts = {
|
||||
KeyB: () => wrapSelection('**', '**'),
|
||||
|
||||
Reference in new issue
Block a user