Skip to content

Commit

Permalink
Merge pull request #307 from cnblogs/insert-image-markdown-directly
Browse files Browse the repository at this point in the history
feat: insert image markdown directly
  • Loading branch information
cnblogs-dudu authored Oct 5, 2024
2 parents babf62b + 0df8e84 commit 33de969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/upload-img/upload-img.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Alert } from '@/infra/alert'
import { uploadClipboardImg } from './upload-clipboard-img'
import { showUploadSuccessModel } from './upload-img-util'
import { insertImgLinkToActiveEditor } from './upload-img-util'
import { uploadFsImage } from './upload-fs-img'

export async function uploadImg() {
Expand All @@ -22,7 +22,7 @@ export async function uploadImg() {

if (imageUrl === undefined) return

await showUploadSuccessModel(imageUrl)
await insertImgLinkToActiveEditor(imageUrl)

return imageUrl
}

0 comments on commit 33de969

Please sign in to comment.