@atlaskit/editor-plugin-insert-block
Version:
Insert block plugin for @atlaskit/editor-core
12 lines (11 loc) • 320 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isDetachedElement = void 0;
/**
* Checks if an element is detached (i.e. not in the current document)
*/
var isDetachedElement = exports.isDetachedElement = function isDetachedElement(el) {
return !document.body.contains(el);
};