refactoring

This commit is contained in:
Philipp Kühn
2021-03-05 09:46:47 +01:00
parent 21d9bf6c51
commit 328d5a459d
3 changed files with 11 additions and 6 deletions

View File

@@ -31,6 +31,11 @@ export class VueRenderer {
if (this.editor.contentComponent) {
this.editor.contentComponent.update()
if (this.teleportElement.children.length !== 1) {
throw Error('VueRenderer doesnt support multiple child elements.')
}
this.element = this.teleportElement.firstElementChild as Element
}
}