this.editorCtx.getContents({
success(res){
let ht = res.html
![8***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/00af279794879aa0adbe87e36c242356.png)
- 发布:2022-08-21 20:51
- 更新:2022-10-12 10:58
- 阅读:768
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10版本
HBuilderX类型: 正式
HBuilderX版本号: 3.5.4
第三方开发者工具版本号: 3.3.13
基础库版本号: 20220314
项目创建方式: HBuilderX
示例代码:
操作步骤:
this.editorCtx.getContents({
success(res){
let ht = res.html
this.editorCtx.getContents({
success(res){
let ht = res.html
预期结果:
this.editorCtx.getContents({
success(res){
let ht = res.html
this.editorCtx.getContents({
success(res){
let ht = res.html
实际结果:
uniapp的editor组件插入的a标签会被删除href属性
uniapp的editor组件插入的a标签会被删除href属性
bug描述:
uniapp的editor组件插入的a标签会被删除href属性
2 个回复
DCloud_UNI_WZF
测试非 uni-app 问题,微信小程序原生开发依然有此问题,可在微信开发者社区反馈
如确认是 uni-app 问题,请提供测试工程
秃顶佩奇 - 秃顶佩奇
大佬,请问一下你是如何插入a标签的
夏夜追凉丶
我封装了一下富文本插件,可以来看看https://ext.dcloud.net.cn/plugin?id=14726
2024-02-23 16:38