vue2 rich text editor recommendation and php processing base64
Now I want to use vue2 to make a PC-side article publishing page
You need to use a rich text editor
Front-end images are displayed through base64
etc. After the user actually submits, it will be saved to the server
Now I want to ask you something
1.Does Vue2 have any mature rich text editor? The pictures are displayed using base64
2.php backend receives the rich text content $_POST ['content']How to extract the image, save it and then replace base64 with url?
Is there a more mature solution?
试试VUE-QUILL-EDITOR,链接:https://github.com/surmon-chi...
编辑器部分楼上的就可以。。图片base64刚好前两天做过,前台展示应该没问题,下面给你贴一下后台的程序
我这里上传的是个数组,你要是单张就不用循环了,直接转换一下