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' + }); } /**