【发布时间】:2017-08-16 15:08:24
【问题描述】:
我在 Redactor 上使用 v-model。当我这样做时,它返回“事件”而不是我正在寻找的实际数据。关于如何返回正确数据的任何想法?
HTML
<div id="question-create-form">
<textarea class="form-control question-create-editor" id="question_description" rows="3"></textarea>
</div>
JS
$('#question-create-form .question-create-editor').redactor({
imageUpload:'/urlGoesHereBro/',
plugins: ['video', 'imagemanager', 'counter', 'limiter'],
buttonsHide:['html', 'formatting', 'deleted', 'indent', 'outdent', 'alignment', 'horizontalrule']
});
$('#question-create-form .redactor-editor').attr('v-model', 'questionDescription');
【问题讨论】:
-
对于遇到相同问题的任何人,请参阅此问题中的答案:stackoverflow.com/questions/43035340/…
标签: vue.js vuejs2 redactor redactor.js