mavonEditor icon indicating copy to clipboard operation
mavonEditor copied to clipboard

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

Open anwar3606 opened this issue 3 years ago • 7 comments

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?

anwar3606 avatar Aug 08 '21 04:08 anwar3606

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

jiawulin001 avatar Aug 09 '21 01:08 jiawulin001

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

anwar3606 avatar Aug 09 '21 01:08 anwar3606

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.

jiawulin001 avatar Aug 09 '21 02:08 jiawulin001

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

anwar3606 avatar Aug 10 '21 00:08 anwar3606

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?

tomaszmac avatar Mar 31 '22 08:03 tomaszmac

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

anwar3606 avatar Apr 18 '22 15:04 anwar3606

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.

tomaszmac avatar Apr 18 '22 18:04 tomaszmac