当前位置:网站首页>如何实现移动端富文本编辑器功能
如何实现移动端富文本编辑器功能
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文件存储到服务器后返回图片地址即可
边栏推荐
- CSRF attack
- Socket communication principle
- 【文件包含漏洞-03】文件包含漏洞的六种利用方式
- SystemVerilog(十三)-枚举数据类型
- Android:kotlin中Gson与JSON的泛型映射解析
- FPGA displays characters and pictures based on VGA
- 16 enterprise architecture strategies
- Jincang database kingbasees plug-in identity_ pwdexp
- What are the functions of arm64 assembly that need attention?
- 基于SSH的高校实验室物品管理信息系统的设计与实现 论文文档+项目源码及数据库文件
猜你喜欢

Jincang KFS data centralized scenario (many to one) deployment

Advanced single chip microcomputer -- development of PCB (2)

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

Network remote access using raspberry pie

看完这篇 教你玩转渗透测试靶机Vulnhub——DriftingBlues-7

戴尔科技演绎“快”字诀,玩转CI/CD

基于SSH的高校实验室物品管理信息系统的设计与实现 论文文档+项目源码及数据库文件

Dell technology performs the "fast" formula and plays ci/cd

SystemVerilog (XIII) - enumerate data types

Dragon Book tiger Book whale Book gnawing? Try the monkey book with Douban score of 9.5
随机推荐
Double tampon transparent cryptage et décryptage basé sur le cadre minifilter
FPGA displays characters and pictures based on VGA
Previous string inversion topic
金仓数据库 KingbaseES 插件dbms_session
TASK03|概率论
Socket communication principle
Task03 probability theory
How to start the phpstudy server
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)
Array structure collation
1-7snapshots and clones in VMWare
[维护集群案例集] GaussDB 查询用户空间使用情况
Ouverture de l'inscription | le troisième marathon des hackers de pagaie est arrivé comme prévu.
C disk uses 100% cleaning method
Causes and solutions of over fitting
Tidb applicable scenarios
Es learning
How gaussdb counts the response time of user SQL
戴尔科技演绎“快”字诀,玩转CI/CD
金仓数据库 KingbaseES 插件DBMS_UTILITY