diff --git a/src/components/ExtensionViews/ImageView.vue b/src/components/ExtensionViews/ImageView.vue index 784876a7..cb960963 100644 --- a/src/components/ExtensionViews/ImageView.vue +++ b/src/components/ExtensionViews/ImageView.vue @@ -91,7 +91,9 @@ export default class ImageView extends Vue { readonly node!: ProsemirrorNode; @Prop({ - type: EditorView, + // TODO: EditorView type check failed + // issue: https://github.com/Leecason/element-tiptap/issues/21#issuecomment-605615966 + type: Object, required: true, }) readonly view!: EditorView; diff --git a/src/components/ExtensionViews/TodoItemView.vue b/src/components/ExtensionViews/TodoItemView.vue index dd26048a..49741579 100644 --- a/src/components/ExtensionViews/TodoItemView.vue +++ b/src/components/ExtensionViews/TodoItemView.vue @@ -46,7 +46,7 @@ export default class TodoItemView extends Vue { readonly node!: ProsemirrorNode; @Prop({ - type: EditorView, + type: Object, required: true, }) readonly view!: EditorView; diff --git a/src/components/MenuBubble/ImageBubbleMenu.vue b/src/components/MenuBubble/ImageBubbleMenu.vue index 3f23dd2f..aa2302b9 100644 --- a/src/components/MenuBubble/ImageBubbleMenu.vue +++ b/src/components/MenuBubble/ImageBubbleMenu.vue @@ -39,7 +39,7 @@ export default class ImageBubbleMenu extends Vue { readonly node!: ProsemirrorNode; @Prop({ - type: EditorView, + type: Object, required: true, }) readonly view!: EditorView; diff --git a/src/components/MenuCommands/Image/RemoveImageCommandButton.vue b/src/components/MenuCommands/Image/RemoveImageCommandButton.vue index 8d956b6d..bd601b43 100644 --- a/src/components/MenuCommands/Image/RemoveImageCommandButton.vue +++ b/src/components/MenuCommands/Image/RemoveImageCommandButton.vue @@ -20,7 +20,7 @@ import CommandButton from '../CommandButton.vue'; }) export default class RemoveImageCommandButton extends Mixins(i18nMixin) { @Prop({ - type: EditorView, + type: Object, required: true, }) readonly view!: EditorView;