当前位置:网站首页>如何实现移动端富文本编辑器功能
如何实现移动端富文本编辑器功能
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文件存储到服务器后返回图片地址即可
边栏推荐
- Getting started with Apache Shenyu
- Coscon'22 lecturer solicitation order
- Es learning
- 基于OpenStreetMap+PostGIS的地理位置系统 论文文档+参考论文文献+项目源码及数据库文件
- Apache ShenYu 入門
- Jincang KFS data centralized scenario (many to one) deployment
- MySQL synchronous data configuration and shell script implementation
- Is it safe for Guosen Securities to open a securities account
- Is it safe to open an account through mobile phone if you open an account through stock speculation? Who knows?
- Server rendering
猜你喜欢

Démarrer avec Apache shenyu

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

FPGA displays characters and pictures based on VGA

Socket communication principle

Software testing to avoid being dismissed during the probation period

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

Upload and modify the use of avatars

【观察】ObjectScale:重新定义下一代对象存储,戴尔科技的重构与创新

软件测试 避免“试用期被辞退“指南,看这一篇就够了

数据库系列:MySQL索引优化总结(综合版)
随机推荐
keep-alive
撸一个随机数生成器
Detection and analysis of simulator in an app
Garbage collection mechanism
报名开启|飞桨黑客马拉松第三期如约而至,久等啦
【上云精品】节能提效!加速纺织业“智造”转型
June 24, 2022: golang multiple choice question, what does the following golang code output? A:1; B:3; C:4; D: Compilation failed. package main import ( “fmt“ ) func mai
Introduction to socket UDP and TCP
3 Questions par jour (3) - vérifier l'existence d'entiers et de leurs doubles
今天16:00 | 中科院计算所研究员孙晓明老师带大家走进量子的世界
金仓数据库 KingbaseES 插件DBMS_OUTPUT
[file containing vulnerability-03] six ways to exploit file containing vulnerabilities
GaussDB 如何统计用户sql的响应时间
金仓数据库 KingbaseES 插件dbms_session
Double buffer transparent encryption and decryption driven course paper + project source code based on minifilter framework
Netease's open source distributed storage system curve officially became the CNCF sandbox project
基于Minifilter框架的双缓冲透明加解密驱动 课程论文+项目源码
Jincang KFS data cascade scenario deployment
1-7snapshots and clones in VMWare
MySQL synchronous data configuration and shell script implementation