* [story#69412,0.5h] add insert zentao list.

This commit is contained in:
qixinzhi
2024-12-23 15:53:41 +08:00
committed by 刘刚
parent 3a625f58e2
commit 66dcdb88a5
+6 -2
View File
@@ -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'
});
}
/**