* [story#69412,0.5h] add insert zentao list.
This commit is contained in:
@@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user