当前位置:网站首页>How to realize the rich text editor function of mobile terminal

How to realize the rich text editor function of mobile terminal

2022-06-25 11:18:00 Liu Yang's dream making program development station

There are very few rich text editors on the mobile end , Because of the customer's demand, I found many , Either the title party or pc The end-to-end adaptation cannot meet the demand , After searching for a long time, I finally found this artEditor, Download address :https://gitee.com/lyzmzcom/artEditor.git
 

Two key js route example/js/index.js dist/index.min.js

modify dist/index.min.js Medium console.error(" The file is too large "); by alert(" The file is too large "); Otherwise, there will be no prompt when the uploaded file exceeds the limit , Very unfriendly

Then modify example/js/index.js Picture upload interface in uploadUrl

Finally, the background image upload interface receives the image file , The received picture file is base64,input('post.image') Get a picture file , decode base64 After the file is stored in the server, you can return the picture address

原网站

版权声明
本文为[Liu Yang's dream making program development station]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251100309340.html