mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
appContext is now component
This commit is contained in:
@@ -16,7 +16,7 @@ async function convertMarkdownToHtml(text) {
|
||||
|
||||
const result = writer.render(parsed);
|
||||
|
||||
appContext.trigger('executeInActiveEditor', {
|
||||
appContext.triggerEvent('executeInActiveEditor', {
|
||||
callback: textEditor => {
|
||||
const viewFragment = textEditor.data.processor.toView(result);
|
||||
const modelFragment = textEditor.data.toModel(viewFragment);
|
||||
|
||||
Reference in New Issue
Block a user