refactoring
This commit is contained in:
@@ -107,9 +107,7 @@ class VueNodeView implements NodeView {
|
||||
}
|
||||
|
||||
get contentDOM() {
|
||||
const hasContent = !this.node.type.isAtom
|
||||
|
||||
if (!hasContent) {
|
||||
if (this.node.isLeaf) {
|
||||
return null
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user