tiptap/packages/core/src/utils/removeElement.ts
2020-09-24 00:29:05 +02:00

6 lines
151 B
TypeScript

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