import { DocmeeUI } from '../../dist/index' (async function main() { // const res = await fetch('https:/docmee.cn/api/user/createApiToken', { // method: 'POST', // body: JSON.stringify({ // uid: new Date().getTime() + '', // limit: 1, // }), // headers: { // 'Api-Key': import.meta.env.VITE_APK_KEY, // 'Content-Type': 'application/json', // }, // }) // const json = await res.json() const docmee = new DocmeeUI({ container: 'app', page: 'creator', // pptId: '2018925364000206848', DOMAIN: 'http://localhost:8125', token: 'ak_demo', mode: 'light', lang: 'zh', creatorVersion: 'v2', }) // 刷新编辑器 docmee.reloadEditor() // 监听PPT重命名 docmee.on('pptxRenamed', (msg) => { console.log({ pptId: msg.data.id, name: msg.data.name }) }) // docmee.getCurrentPptInfo() // docmee.changeCreatorData({ // type: CreatorType.MD, // text: '' // }) })()