Skip to content

Commit

Permalink
docs: upload picture code error
Browse files Browse the repository at this point in the history
  • Loading branch information
imzbf committed May 19, 2022
1 parent 7102a1f commit d6ff90b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,11 @@ const text = ref('# Hello Editor');
</script>
```

### Upload picture
### Upload Picture

> Tips: When you paste and upload GIF, it will upload a static picture. So you should upload it by file system!
```vue
<template>
<md-editor v-model="text" @onUploadImg="onUploadImg" />
</template>
Expand Down Expand Up @@ -553,6 +554,7 @@ const onUploadImg = async (files, callback) => {
callback(res.map((item) => item.data.url));
};
</script>
```

### Change Styles

Expand Down

0 comments on commit d6ff90b

Please sign in to comment.