Henrique
Henrique

Reputation: 23

How to upload an image that was pasted into TinyMCE after a ScreenShot?

Does anyone know how to upload an image that was pasted into TinyMCE after a ScreenShot?

Please can someone help me with an example in javascript?

I tried with multer, but not worked, because the Multer not filter a variable have texts and images, just must be variable with images without texts.

Upvotes: 0

Views: 1367

Answers (1)

Dmitry D
Dmitry D

Reputation: 546

By default, TinyMCE does not upload images on the server. It converts them into base64 and adds them as base64 blobs. To upload these images to the server, you will need to set up automatic_uploads and add a custom upload handler (check other options in the configuration reference, like images_upload_url, images_upload_base_path, images_upload_credentials, etc).

Upvotes: 0

Related Questions