UNPKG

@atlaskit/editor-plugin-insert-block

Version:

Insert block plugin for @atlaskit/editor-core

4 lines 146 B
/** * Checks if an element is detached (i.e. not in the current document) */ export const isDetachedElement = el => !document.body.contains(el);