mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-24 01:17:50 +08:00
5 lines
150 B
TypeScript
5 lines
150 B
TypeScript
export default function removeElement(element: HTMLElement) {
|
|
if (element && element.parentNode) {
|
|
element.parentNode.removeChild(element)
|
|
}
|
|
} |