k55k32 / markdown-it-editor

a markdown rich text editor base on markdown-it and vue2

Home Page:https://k55k32.github.io/markdown-it-editor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why emit this event

MoonBottle opened this issue · comments

hello, author
when i read your code, i find some code like this

let success = this.$emit('upload-success', xhr.responseText)

so why emit this event in here , because i can't find any useage
thank u

when the image upload success , this emit will be trigger.
See component-attributes upload props.
if you don't wanna default upload-success function execute.
You can define this emit, and return false.
See Component-Events

soga, i know ... thanks ~~