Skip to content

Commit

Permalink
fix: fix editor type for VueRenderer, fix #281
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Apr 16, 2021
1 parent 07c6d51 commit f6d8776
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vue-3/src/VueRenderer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { reactive, markRaw, Component } from 'vue'
import { AnyObject } from '@tiptap/core'
import { Editor } from './Editor'
import { AnyObject, Editor } from '@tiptap/core'
import { Editor as ExtendedEditor } from './Editor'

export interface VueRendererOptions {
editor: Editor,
Expand All @@ -10,7 +10,7 @@ export interface VueRendererOptions {
export class VueRenderer {
id: string

editor: Editor
editor: ExtendedEditor

component: Component

Expand All @@ -22,7 +22,7 @@ export class VueRenderer {

constructor(component: Component, { props = {}, editor }: VueRendererOptions) {
this.id = Math.floor(Math.random() * 0xFFFFFFFF).toString()
this.editor = editor
this.editor = editor as ExtendedEditor
this.component = markRaw(component)
this.teleportElement = document.createElement('div')
this.element = this.teleportElement
Expand Down

0 comments on commit f6d8776

Please sign in to comment.