blob: fa842f23cc363bf356912ca9511fa12cd8eae75d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<script>
export default {
provide() {
// We can't use this.contentEditor due to bug in vue-apollo when
// provide is called in beforeCreate
// See https://github.com/vuejs/vue-apollo/pull/1153 for details
// @vue-compat does not care to normalize propsData fields
const contentEditor =
this.$options.propsData.contentEditor || this.$options.propsData['content-editor'];
return {
contentEditor,
eventHub: contentEditor.eventHub,
tiptapEditor: contentEditor.tiptapEditor,
};
},
props: {
contentEditor: {
type: Object,
required: true,
},
},
render() {
return this.$scopedSlots.default?.();
},
};
</script>
|