当前位置:网站首页>如何实现移动端富文本编辑器功能
如何实现移动端富文本编辑器功能
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文件存储到服务器后返回图片地址即可
边栏推荐
- GCC related
- Database Series: MySQL index optimization summary (comprehensive version)
- 10.1. Oracle constraint deferred, not deferred, initially deferred and initially deferred
- c盘使用100%清理方法
- 金仓数据库 KingbaseES 插件DBMS_UTILITY
- Comparable的使用(用于Arrays.sort)
- After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-7
- 金仓数据库 KingbaseES 插件dbms_session
- 贝叶斯
- What are the ways to simulate and burn programs? (including common tools and usage)
猜你喜欢

Nuxtjs actual combat case

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

zabbix分布式系统监控

Es learning

Upload and modify the use of avatars

【文件包含漏洞-04】经典面试题:已知某网站仅存在本地文件包含漏洞时,如何GetShell?

Netease's open source distributed storage system curve officially became the CNCF sandbox project

Double tampon transparent cryptage et décryptage basé sur le cadre minifilter

Android之Kotlin语法详解与使用

A difficult mathematical problem baffles two mathematicians
随机推荐
Netease's open source distributed storage system curve officially became the CNCF sandbox project
报名开启|飞桨黑客马拉松第三期如约而至,久等啦
每日3題(3)-檢查整數及其兩倍數是否存在
Shen Ying, China Academy of communications and communications: font open source protocol -- Introduction to ofl v1.1 and analysis of key points of compliance
金仓KFS数据级联场景部署
Query method and interrupt method to realize USART communication
Kingbasees plug-in DBMS of Jincang database_ session
How to start the phpstudy server
CSRF attack
Open source invites you to participate in the openssf Open Source Security Online Seminar
16 种企业架构策略
A random number generator
金仓KFS数据集中场景(多对一)部署
Tidb applicable scenarios
SystemVerilog (XIII) - enumerate data types
Free access to the global human settlements layer (ghsl) dataset from Gee
Daily 3 questions (3) - check whether integers and their multiples exist
贝叶斯
Oracle彻底卸载的完整步骤
MySQL and Oracle processing CLOB and blob fields