mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
feat: expose hasAnchor to custom placeholder function (#2470)
* expose hasAnchor to custom placeholder function * Update placeholder.ts
This commit is contained in:
parent
9ffc4ab7c8
commit
2fe6e2135d
@ -14,6 +14,7 @@ export interface PlaceholderOptions {
|
||||
showOnlyWhenEditable: boolean,
|
||||
showOnlyCurrent: boolean,
|
||||
includeChildren: boolean,
|
||||
hasAnchor: boolean,
|
||||
}
|
||||
|
||||
export const Placeholder = Extension.create<PlaceholderOptions>({
|
||||
@ -61,6 +62,7 @@ export const Placeholder = Extension.create<PlaceholderOptions>({
|
||||
editor: this.editor,
|
||||
node,
|
||||
pos,
|
||||
hasAnchor,
|
||||
})
|
||||
: this.options.placeholder,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user