当前位置:网站首页>如何实现移动端富文本编辑器功能
如何实现移动端富文本编辑器功能
2022-06-25 11:00:00 【刘杨造梦程序开发建站】
移动端富文本编辑器市面非常之少,因客户需求找了不少,不是标题党就是pc端自适应那种无法满足需求,找了好久终于找到了这个artEditor,下载地址:https://gitee.com/lyzmzcom/artEditor.git
两个关键的js路径example/js/index.js dist/index.min.js
修改dist/index.min.js中的console.error("文件太大");为alert("文件太大");否则上传文件超过限制不会有提示,非常不友好
接着修改example/js/index.js中的图片上传接口uploadUrl
最后后台图片上传接口接收图片文件,接收到的图片文件为base64,input('post.image')获取图片文件,解码base64文件存储到服务器后返回图片地址即可
边栏推荐
- 撸一个随机数生成器
- Upload and modify the use of avatars
- [observation] objectscale: redefining the next generation of object storage, reconstruction and innovation of Dell Technology
- 10.1. Oracle constraint deferred, not deferred, initially deferred and initially deferred
- Complete steps for a complete Oracle uninstall
- Socket communication principle
- 每日3题(2)- 找出数组中的幸运数
- 软件测试 避免“试用期被辞退“指南,看这一篇就够了
- Open source invites you to participate in the openssf Open Source Security Online Seminar
- Double buffer transparent encryption and decryption driven course paper + project source code based on minifilter framework
猜你喜欢
![[file containing vulnerability-03] six ways to exploit file containing vulnerabilities](/img/4f/495c852eb0e634c58e576d911a2c14.png)
[file containing vulnerability-03] six ways to exploit file containing vulnerabilities

Open source invites you to participate in the openssf Open Source Security Online Seminar

What are the ways to simulate and burn programs? (including common tools and usage)

XSS attack
![[file inclusion vulnerability-04] classic interview question: how to getshell when a website is known to have only local file inclusion vulnerability?](/img/28/ab02d38bde47053b155e0545b47039.png)
[file inclusion vulnerability-04] classic interview question: how to getshell when a website is known to have only local file inclusion vulnerability?

Double buffer transparent encryption and decryption driven course paper + project source code based on minifilter framework

scrapy+scrapyd+gerapy 爬虫调度框架

Technical practice and development trend of video conference all in one machine

Jincang KFS data centralized scenario (many to one) deployment

Complete steps for a complete Oracle uninstall
随机推荐
Application of global route guard
Is it safe to open a securities account in changtou school by mobile phone?
ZABBIX distributed system monitoring
Detection and analysis of simulator in an app
Some assembly instructions specific to arm64
Is it safe for Guosen Securities to open a securities account
Google Earth Engine (Gee) - evaluate réalise le téléchargement en un clic de toutes les images individuelles dans la zone d'étude (certaines parties de Shanghai)
Continuous delivery jenkinsfile syntax
Jincang database kingbasees plug-in force_ view
[maintain cluster case set] gaussdb query user space usage
報名開啟|飛槳黑客馬拉松第三期如約而至,久等啦
Writing wechat applet with uni app
After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-7
Bayes
1-7snapshots and clones in VMWare
GaussDB others内存比较高的场景
Ouverture de l'inscription | le troisième marathon des hackers de pagaie est arrivé comme prévu.
某APP中模拟器检测分析
金仓数据库 KingbaseES 插件force_view
一个数学难题,难倒两位数学家