refactor: remove deprecated packages

This commit is contained in:
Philipp Kühn
2021-08-13 15:47:53 +02:00
parent 731c1640d7
commit 9cf99fedc0
4 changed files with 0 additions and 83 deletions

View File

@@ -362,28 +362,6 @@ export class Editor extends EventEmitter {
return getAttributes(this.state, nameOrType)
}
/**
* Get attributes of the currently selected node.
*
* @param name Name of the node
*/
public getNodeAttributes(name: string): Record<string, any> {
console.warn('[tiptap warn]: editor.getNodeAttributes() is deprecated. please use editor.getAttributes() instead.')
return getNodeAttributes(this.state, name)
}
/**
* Get attributes of the currently selected mark.
*
* @param name Name of the mark
*/
public getMarkAttributes(name: string): Record<string, any> {
console.warn('[tiptap warn]: editor.getMarkAttributes() is deprecated. please use editor.getAttributes() instead.')
return getMarkAttributes(this.state, name)
}
/**
* Returns if the currently selected node or mark is active.
*