weixin_39609620
2020-12-28 10:03 阅读 169

Uncaught ReferenceError: table is not defined

Vuejs Webpack template Vue 2.4.2. vue-wysiwyg 1.2.7

Error at hitting the "Insert" button in the table section.

Uncaught ReferenceError: table is not defined at VueComponent.insertTable (vueWysiwyg.js?fcc0:1) at Proxy.boundFn (vue.esm.js?65d7:179) at submit (vueWysiwyg.js?fcc0:1) at HTMLFormElement.invoker (vue.esm.js?65d7:1821)

Set up:

main.js

import wysiwyg from 'vue-wysiwyg'; Vue.use(wysiwyg, {}); import 'vue-wysiwyg/dist/vueWysiwyg.css'

in component: <wysiwyg v-model="problemBody" placeholder="Describe the Problem..."></wysiwyg>

Perhaps something I'm doing wrong?

该提问来源于开源项目:chmln/vue-wysiwyg

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

8条回答 默认 最新

  • weixin_39564368 weixin_39564368 2020-12-28 10:03

    I have the same problem here :/

    点赞 评论 复制链接分享
  • weixin_39820244 weixin_39820244 2020-12-28 10:03

    The same problem

    点赞 评论 复制链接分享
  • weixin_39925413 weixin_39925413 2020-12-28 10:03

    Is this fixed? Not working for me... getting the same error as

    点赞 评论 复制链接分享
  • weixin_39564368 weixin_39564368 2020-12-28 10:03

    I changed to summernote, working much better and everything works fine.

    点赞 评论 复制链接分享
  • weixin_39734399 weixin_39734399 2020-12-28 10:03

    Hello

    Please try installing vue-wysiwyg from npm and let me know if that fixed your problems. I suspect this error had to do with some changes at Vue and wasn't from my part (#25).

    Thank you.

    点赞 评论 复制链接分享
  • weixin_39734399 weixin_39734399 2020-12-28 10:03

    you do realize though that vue-wysiwyg and editors such as summernote, tinymce, and ckeditor are in totally different leagues.

    This is a barebones editor catering to minimalist, performance-minded users. Meanwhile, summernote and others are bloated with heavy and unnecessary dependencies, despite having larger teams (8 for summernote, a few dozens for ckeditor) working for them.

    You're free to use whatever you want.

    点赞 评论 复制链接分享
  • weixin_39609620 weixin_39609620 2020-12-28 10:03

    Thank you so much for taking the time, this indeed seemed to be the problem. Now the table appears with no errors in the console.

    However, there seems to be a bug that embeds the table inside another identical table, I would love to try to take a look, but can you direct me to the branch/version that is currently at ?

    giphy

    点赞 评论 复制链接分享
  • weixin_39734399 weixin_39734399 2020-12-28 10:03

    I can't reproduce that problem at the moment. Please try again with v1.3.2 :)

    点赞 评论 复制链接分享

相关推荐