trilium/src/public/javascripts/services/note_detail_render.js

21 lines
499 B
JavaScript
Raw Normal View History

import bundleService from "./bundle.js";
import server from "./server.js";
import noteDetailService from "./note_detail.js";
const $noteDetailRender = $('#note-detail-render');
2018-03-28 09:46:38 +08:00
async function show() {
$noteDetailRender.show();
const bundle = await server.get('script/bundle/' + noteDetailService.getCurrentNoteId());
$noteDetailRender.html(bundle.html);
await bundleService.executeBundle(bundle);
}
export default {
2018-03-28 09:46:38 +08:00
show,
getContent: () => null,
focus: () => null
}