w***@qq.com
w***@qq.com
  • 发布:2021-11-16 22:10
  • 更新:2024-02-22 22:04
  • 阅读:3014

uniapp富文本工具栏不显示(editorContext editor×富文本 )

分类:uni-app
<editor style="background-color: #EBEBEB; width: 100%; padding: 10upx;" placeholder="公司介绍" id="editor" class="ql-container" :placeholder="placeholder" @input="editorChange" @ready="onEditorReady"></editor>  

                chushihua: function() {  
                    this.$api.request("/wapbusiness/userinfo").then((res) => {  
                        this.gongsijieshao = res.data.company.gongsijieshao  
                    }).catch((e) => {})  
                },  
                onEditorReady() {  
                    const that = this  
                    uni.createSelectorQuery().select('#editor').context((res) => {  
                        this.editorCtx = res.context  
                        this.editorCtx.setContents({  
                            html: that.info.gongsijieshao,  
                            success: (res) => {  
                                console.log(res)  
                            },  
                            fail: (res) => {  
                                console.log(res)  
                            },  
                        })  
                    }).exec()  
                },  
                editorChange: function(e) {  
                    this.gongsijieshao = e.detail.html  
                }  
2021-11-16 22:10 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

你好!请问解决了吗?遇到同样的问题

vc888

vc888

同样

夏夜追凉丶

夏夜追凉丶

我封装了一个https://ext.dcloud.net.cn/plugin?id=14726

Datouk

Datouk

怎么解决?菜单栏不显示

vc888

vc888

bug 太多 只能放弃。。。

空白人吗

空白人吗 - 7年开发经验 可接APP 小程序 网页 后端 qq6864952

本来就不显示工具栏的,应该说压根就没有工具栏,工具来得自己开发,或者 直接在 hello uniapp 例子里 复制他的工具栏来用

  • 1***@qq.com

    谢谢老哥啊,还好看到你的这条留言,老哥,有啥更好的解决方案吗,这个官方的也不咋好用

    2022-12-28 13:16

  • 空白人吗

    回复 1***@qq.com: 可以考虑自己开发一个工具栏,然后用api 来处理,目前除了这样应该没有更好 办法,或者你看看其他ui 框架有没有好用的组件

    2022-12-31 12:18

要回复问题请先登录注册