Merge branch 'main' of github.com:ueberdosis/tiptap into add-empty-editor-class-to-root-div
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Editor, Extension } from '@tiptap/core'
|
||||
import { Node as ProsemirrorNode } from 'prosemirror-model'
|
||||
import { Decoration, DecorationSet } from 'prosemirror-view'
|
||||
import { Plugin } from 'prosemirror-state'
|
||||
import { Decoration, DecorationSet } from 'prosemirror-view'
|
||||
|
||||
export interface PlaceholderOptions {
|
||||
emptyEditorClass: string,
|
||||
@@ -42,7 +42,7 @@ export const Placeholder = Extension.create<PlaceholderOptions>({
|
||||
const decorations: Decoration[] = []
|
||||
|
||||
if (!active) {
|
||||
return
|
||||
return null
|
||||
}
|
||||
|
||||
cachedEmptyTopNode = cachedEmptyTopNode || doc.type.createAndFill()
|
||||
|
||||
Reference in New Issue
Block a user