PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / gutenberg / util / cloud-export.js

cloud-export.js in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/gutenberg/util/cloud-export.js

18 lines 562 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { render } from "react-dom";
2 import Modal from "react-modal";
3 import ModalContainer from "./modal/ModalContainer";
4
5 window.onload = function() {
6 // Inject export button div in toolbar
7 let node = document.querySelector(".edit-post-header__settings");
8 let newElem = document.createElement("div");
9 let html = "<div id='eb-cloud-export'></div>";
10 newElem.innerHTML = html;
11 node.appendChild(newElem);
12
13 // Bind modal with export button
14 Modal.setAppElement("#eb-cloud-export");
15
16 render(<ModalContainer />, document.getElementById("eb-cloud-export"));
17 };
18