milkdown-lab
milkdown-lab copied to clipboard
MilkdownError: Timer "SchemaReady" not found, do you forget to record it?
I get this error when using the plugin-menu.
Any ideas?
import { Editor, defaultValueCtx, rootCtx } from "@milkdown/core";
import { commonmark } from "@milkdown/preset-commonmark";
import { menu, menuDefaultConfig } from '@milkdown-lab/plugin-menu'
// Define the initializeEditor function
export function initializeEditor(markdownContent) {
console.log('Initializing editor...');
Editor.make()
.config(menuDefaultConfig)
.config((ctx) => {
ctx.set(rootCtx, '#content');
ctx.set(defaultValueCtx, markdownContent);
})
.use(commonmark)
.use(menu)
.create();
}
this lib hasn't kept up with the version of milkdown, it should be caused by a mismatch in the version
maybe it will be fixed in this weekend
@enpitsuLin that would truly be appreciated 🙏🏽
Any news on this? 🙏🏽
sry man, I was so addicted to playing video game last weekend that forgot this issue
now that 1.2.2 has been released it should fix this