@tohuhono/puck-rich-text
Version:
A puck component for rich text editing made for OberonCMS
9 lines (8 loc) • 372 B
JavaScript
const getToolbarPortal = () => {
var _a, _b, _c;
const base = ((_a = document.querySelector("iframe")) == null ? void 0 : _a.contentDocument) || document;
return (_c = (_b = base == null ? void 0 : base.querySelector(`[data-puck-overlay="true"]`)) == null ? void 0 : _b.querySelector("button")) == null ? void 0 : _c.parentElement;
};
export {
getToolbarPortal
};