From 66dcdb88a5fb6e95b66d2e186e1e30bb98fe528b Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Mon, 23 Dec 2024 07:37:38 +0000 Subject: [PATCH] * [story#69412,0.5h] add insert zentao list. --- lib/zin/wg/docapp/js/v1.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/zin/wg/docapp/js/v1.js b/lib/zin/wg/docapp/js/v1.js index 2bf561ecc3..01f858ba70 100644 --- a/lib/zin/wg/docapp/js/v1.js +++ b/lib/zin/wg/docapp/js/v1.js @@ -43,12 +43,16 @@ window.setZentaoSlashMenu = function(menus, title) zui.Editor.setGlobalConfig({slashMenuStyles: [`link:${$.libRoot}zui.zentao.css`]}); } -window.insertZentaoList = function(type) +window.insertZentaoList = function(type, blockID) { const docApp = getDocApp(); const editor = docApp.editor; - editor.insertCustom({fetcher: $.createLink('doc', 'zentaolist', `type=${type}`)}); + editor.$.insertIframe({ + src: $.createLink('doc', 'zentaoList', `type=${type}&blockID=${blockID}`), + class: 'rounded-lg ring', + height: 'auto' + }); } /**