You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const MilkdownEditor: React.FC = () => {
const { editor } = useEditor((root) => // <--- editor does not exist on type UseEditor Return
Editor.make()
.config(nord)
.config((ctx) => {
ctx.set(rootCtx, root);
})
.use(commonmark),
);
return <Milkdown />;
};
What is this editor for? I also checked out React recipe and it shows get instead of editor. I have no idea what this get do too. Can someone redirect me to the page to show all these props and methods? I may have missed it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am following the example for React Nextjs from https://milkdown.dev/docs/recipes/nextjs
What is this
editor
for? I also checked out React recipe and it showsget
instead ofeditor
. I have no idea what thisget
do too. Can someone redirect me to the page to show all these props and methods? I may have missed it.Beta Was this translation helpful? Give feedback.
All reactions