Medium editor: about picture plug-ins and emoji questions?

I found the editor media-editor
https://github.com/yabwe/medi.

on the Internet when I needed it.

and then I"m worried about how to upload movies and pictures.
https://github.com/orthes/med.

when I use it, I find that there are several problems that I can"t solve all the time.

question 1
when dragging and uploading to edit or upload a built-in image using the media-editor-insert-plugin plug-in, the "original image" will be uploaded without compression, so if there are more than a dozen images, each with a large size, it will lead to operation delay. I can"t imagine how to go through compression first. Or do not send the "original picture" and then put it to the editor
add: all I can know now is that he spits out the data after he is finished: how can I compress him when I put base64 into the editor? Hide him?

question 2
emoji is not supported. When you put the emoji to the editor and send it to the database, what is displayed is "?". This is also the

that I have been worried about all the time.

question 3
I found that when I want to upload youtube,facebook,instagram movies, I can directly through the URL and third-party suite service to achieve the direct introduction of the function, found that this third-party suite supports the editor
https://iframely.com/docs/medium
would like to ask if anyone has used this service, and is there any other alternative?

thanks to the above, it has bothered me for several days.
I would like to ask the great gods, can you show me the way for the little ones and give me a fishing rod and train of thought? How to solve the above problems!
question 1 I don"t know if I can intercept it halfway. The preview of the photo he outputs is data: base64,. I don"t know if I can make changes to the image uploaded to the editor and then throw it back, but it seems impossible to think about it, but I can"t find the code when dragging or uploading the photo.


  1. pre-upload compression of images can be stored in your Editor with the help of Cavas, and then converted to Base64. For specific methods, please refer to the canvasDataURL method
  2. in " frontend image compression upload (pure js quality compression, non-length-width compression) ".
  3. for more information on Emoji garbled, please refer to " solution to push emoji garbled "
  4. I haven't used video, but it's not a big problem. The principle is to write the video address into a video player and post it to Editor.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32845-2be2b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32845-2be2b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?