refactoring

This commit is contained in:
Philipp Kühn
2021-03-14 18:00:50 +01:00
parent baa5bcc964
commit 109bff0892
7 changed files with 30 additions and 96 deletions

View File

@@ -107,9 +107,7 @@ class VueNodeView implements NodeView {
}
get contentDOM() {
const hasContent = !this.node.type.isAtom
if (!hasContent) {
if (this.node.isLeaf) {
return null
}

View File

@@ -2,9 +2,9 @@ import { reactive, markRaw, Component } from 'vue'
import { Editor } from './Editor'
export interface VueRendererOptions {
as?: string;
editor: Editor;
props?: { [key: string]: any };
as?: string,
editor: Editor,
props?: { [key: string]: any },
}
export class VueRenderer {