mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 17:07:49 +08:00
6 lines
151 B
TypeScript
6 lines
151 B
TypeScript
export default function removeElement(element: HTMLElement) {
|
|
if (element && element.parentNode) {
|
|
element.parentNode.removeChild(element)
|
|
}
|
|
}
|