Vue 组件中的 jQuery 插件:无法将值传递给 prop [英] jQuery plugin in Vue component: Cannot pass value to prop

查看:23
本文介绍了Vue 组件中的 jQuery 插件:无法将值传递给 prop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 vue 组件中添加了 jquery redactor 插件.该插件运行良好,但我需要访问 html 以便我可以在 Vue 中看到它.

我已经尝试了所有我能想到的方法,方法,计算属性,但我找不到方法.特别棘手,因为Redactor在dom中添加了新的html,我需要从添加的html中获取数据.

目前我收到这个错误,this.$emit is not a function.我需要将 .redactor-editor 的 html 值放入 prop 中,以便它在 vue 数据中可用.var textContent 在控制台中正确打印出来,但我无法在 prop 中显示它.非常感谢任何帮助.

组件