hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.4k stars 917 forks source link

[Question] Uploading file other then image files (e.g. text files) #705

Open anwar3606 opened 3 years ago

anwar3606 commented 3 years ago

Does mavon editor provide any functionality to upload files other then images?

I tried to use imageFilter function but it doesn't working even if I return true.

Any guide?

jiawulin001 commented 3 years ago

Hi, please provide more details, eg. a reproduction repo will be better, Thx!

anwar3606 commented 3 years ago

Simply, I just want to upload pdf or text file and put their link inside markdown. Just like image.

jiawulin001 commented 3 years ago

markdown cannot preview non-image type files, so there is no way to upload other format files, we must know the address of the file, for example: image

I think this feature is similar to uploading images and should be a nice new feature.

anwar3606 commented 3 years ago

Agree, GitHub and Gitlab has similar feature in their markdown editors.

tomaszmac commented 2 years ago

markdown cannot preview non-image type files, so there is no way to upload other format files, we must know the address of the file, for example: image

I think this feature is similar to uploading images and should be a nice new feature.

Did you find a way to upload files like pdf or txt?

anwar3606 commented 2 years ago

markdown cannot preview non-image type files, so there is no way to upload other format files, we must know the address of the file, for example: image I think this feature is similar to uploading images and should be a nice new feature.

Did you find a way to upload files like pdf or txt?

Right now I'm using another component to upload file and manually changing the markdown text by myself

tomaszmac commented 2 years ago

markdown cannot preview non-image type files, so there is no way to upload other format files, we must know the address of the file, for example: image I think this feature is similar to uploading images and should be a nice new feature.

Did you find a way to upload files like pdf or txt?

Right now I'm using another component to upload file and manually changing the markdown text by myself

Could you tell me how you did it? I'm still struggling with it.