tiptap/packages/core/src/utils/removeElement.ts
2020-03-31 13:06:34 +02:00

5 lines
150 B
TypeScript

export default function removeElement(element: HTMLElement) {
if (element && element.parentNode) {
element.parentNode.removeChild(element)
}
}