jQuery plugin in Vue component: Cannot pass value to prop

前端 未结 3 741
盖世英雄少女心
盖世英雄少女心 2020-12-11 10:36

I have added the jquery redactor plugin in a vue component. The plugin is working fine but I need to access the html so I can see it in Vue.

I have tried everything

3条回答
  •  独厮守ぢ
    2020-12-11 11:21

    Just to add to @BertEvans superb answer. Here is a solution that adds props and v-model back into the mix. This allows you to get the redactor content as a value and have access to that data in the root.

    Component