vue-html5-editor icon indicating copy to clipboard operation
vue-html5-editor copied to clipboard

cannot set property 'innerHTML' of undefined

Open imageslr opened this issue 7 years ago • 7 comments

在main.js中已经引入为全局组件:

import VueHtml5Editor from 'vue-html5-editor'
Vue.use(VueHtml5Editor, {
    showModuleName: true
});

在.vue中加入:

<vue-html5-editor :content="content" :height="500"></vue-html5-editor>

结果提示如标题。请问这是什么原因?

imageslr avatar Jul 07 '17 00:07 imageslr

我也是这样啊,不知道为什么,你解决了吗?

CodeInn1024 avatar Jul 01 '18 10:07 CodeInn1024

没呢 后来没用了 @982991084

imageslr avatar Jul 01 '18 16:07 imageslr

同样的问题,hbuilder打包app后编辑器直接就不显示出来了。

hanfeng1982 avatar Jul 04 '18 12:07 hanfeng1982

在webpack中添加如下配置:

module.export{
    ...
    resolve:{
        alias:{
            'vue$':'vue/dist/vue.js'
        }
    }
}

lzm8607 avatar Jul 18 '18 07:07 lzm8607

me too

liangtongzhuo avatar Dec 07 '18 09:12 liangtongzhuo

在webpack中添加如下配置:

module.export{
    ...
    resolve:{
        alias:{
            'vue$':'vue/dist/vue.js'
        }
    }
}

有一点比较尴尬,我用vue cli 没找到 webpack

liangtongzhuo avatar Dec 07 '18 09:12 liangtongzhuo

请问怎么解决呢

luyu1314 avatar Apr 27 '20 02:04 luyu1314