2***@qq.com
2***@qq.com
  • 发布:2023-09-05 14:53
  • 更新:2023-09-05 14:53
  • 阅读:123

【真机】富文本上传图片,通过EditorContext.getContents 结果的img 标签src 内容 不是wx 的临时文件路径 而是base64

分类:uni-app

uniapp转微信小程序真机调试编辑富文本上传图片,通过EditorContext.getContents获取 res.html 中img 标签src 内容 不是wx 的临时文件路径 而是base64 请问怎么解决 使其 转成wx临时路径


                 console.log("before save = >");  
                this.editorCtx.getContents({  
                    success: (res) => {  
                        debugger;  
                        console.log("save = >", res);  
                        res.html = handleHtmlImage(res.html, tsrue);  

                        console.log("after save = >", res);  
                        this.$emit("save", res);  
                        // uni.showToast({  
                        //  title: '保存成功',  
                        //  icon: 'none'  
                        // });  
                    },  
                    complete: (res) => {  
                        // console.log("getContents complete");  
                    },  
                });  
            },  
···
2023-09-05 14:53 负责人:无 分享
已邀请:

要回复问题请先登录注册