|
@@ -135,6 +135,8 @@ const toggleSubmenu = (menu: string) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
const handleToolClick = (tool: string) => {
|
|
const handleToolClick = (tool: string) => {
|
|
|
interface ParentWindowWithToolList extends Window {
|
|
interface ParentWindowWithToolList extends Window {
|
|
|
addTool?: (id: number) => void;
|
|
addTool?: (id: number) => void;
|
|
@@ -177,6 +179,10 @@ const loadContentList = () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+(window as any).loadContentList = loadContentList
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
const insertContent = (item: ContentItem) => {
|
|
const insertContent = (item: ContentItem) => {
|
|
|
if (!item.tool || !item.url) return
|
|
if (!item.tool || !item.url) return
|
|
|
createFrameElement(item.url, item.tool)
|
|
createFrameElement(item.url, item.tool)
|