vue-html5-editor
vue-html5-editor copied to clipboard
cannot set property 'innerHTML' of undefined
在main.js中已经引入为全局组件:
import VueHtml5Editor from 'vue-html5-editor'
Vue.use(VueHtml5Editor, {
showModuleName: true
});
在.vue中加入:
<vue-html5-editor :content="content" :height="500"></vue-html5-editor>
结果提示如标题。请问这是什么原因?
我也是这样啊,不知道为什么,你解决了吗?
没呢 后来没用了 @982991084
同样的问题,hbuilder打包app后编辑器直接就不显示出来了。
在webpack中添加如下配置:
module.export{
...
resolve:{
alias:{
'vue$':'vue/dist/vue.js'
}
}
}
me too
在webpack中添加如下配置:
module.export{ ... resolve:{ alias:{ 'vue$':'vue/dist/vue.js' } } }
有一点比较尴尬,我用vue cli 没找到 webpack
请问怎么解决呢