当前位置:网站首页>uniapp-富文本编辑器
uniapp-富文本编辑器
2022-06-30 20:20:00 【智江鹏】
功能介绍
- 支持在多个主流的小程序平台和
uni-app中使用- 支持丰富的标签(包括
table、video、svg等)- 支持丰富的事件效果(自动预览图片、链接处理等)
- 支持设置占位图(加载中、出错时、预览时)
- 支持锚点跳转、长按复制等丰富功能
- 支持大部分 html 实体
- 丰富的插件(关键词搜索、内容 编辑 等)
- 效率高、容错性强且轻量化(
≈24.5KB,9KB gzipped)
uni-app
将源码中
dist/uni-app内的内容拷贝到项目根目录下
可以直接通过 插件市场 引入在需要使用页面的
vue文件中添加
<template>
<view>
<mp-html :content="html" />
</view>
</template>
<script>
import mpHtml from '@/components/mp-html/mp-html'
export default {
// HBuilderX 2.5.5+ 可以通过 easycom 自动引入
components: {
mpHtml
},
data() {
return {
html: '<div>Hello World!</div>'
}
}
}
</script>组件属性
组件事件

api


官网
边栏推荐
- Lingyun going to sea | 10 leap &huawei cloud: jointly helping Africa with inclusive financial services
- Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
- PHP获取Opcode及C源码
- Description of the latest RTSP address rules for Hikvision camera, NVR, streaming media server, playback and streaming [easy to understand]
- Jerry's determination of detection sensitivity level [chapter]
- unittest自动测试多个用例时,logging模块重复打印解决
- DEX文件解析 - method_ids解析
- Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)
- RP原型资源分享-购物类App
- 杰理之检测灵敏度级别确定【篇】
猜你喜欢
随机推荐
北京大学ACM Problems 1005:I Think I Need a Houseboat
obsidian配合hugo的使用,让markdown本地编辑软件与在线化无缝衔接
基于开源流批一体数据同步引擎ChunJun数据还原—DDL解析模块的实战分享
杰理之关于长按开机检测抬起问题【篇】
居家办公没有“血泪史”| 社区征文
Peking University ACM problems 1006:biorhythms
Amazon restricts LGBTQ related search and product sales in the United Arab Emirates
Evolution of screen display technology
北京大学ACM Problems 1002:487-3279
Peking University ACM problems 1001:exposition
AVL balanced binary tree (I) - concept and C language implementation
大神詳解開源 BUFF 增益攻略丨直播
Maya house modeling
Playwright - scroll bar operation
Lumiprobe 聚乙二醇化和 PEG 接头丨碘-PEG3-酸研究
Lvalue reference and lvalue reference
Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
在线教育项目用户登录和注册
Lumiprobe细胞生物学丨DiA,亲脂性示踪剂说明书
Basic concepts of tree








