用于在选中位置快捷插入模板信息
制作模板片段
新建文档,分别按需制作模板片段。
在模板或病历中鼠标选中需要插入的位置
调用接口InputFragment-将模板片段插入到当前输入位置
示例代码
InsertFragment(fragment_file)
{
var url = "/system/fragment/" + fragment_file;
fetch(url, {credentials:'same-origin'}).then(function (response) {
response.arrayBuffer().then(data => {
ThinkEditor.InputFragment(data);
});
});
}
文档更新时间: 2021-11-11 14:16 作者:admin