feat: expose hasAnchor to custom placeholder function (#2470)
* expose hasAnchor to custom placeholder function * Update placeholder.ts
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user