|
I've copied the emoji-menu plugin implementation from the Playground example here: And I am getting an error "Out of Scope" thrown by The offending code is which is line 22 of this file In the debugger in the console, the code of pluginViewContext.ts is this: which, obviously, throw the "out of scope" error. The question, is why? The playground example seems to work. But copying the emoji-menu plugin folder seems to not be enough. So, is there another step needed beyond copying that emoji-menu folder and initializing it with useEmojiMenu() and setting The plugin is obviously being called and initialized. It is just failing with that "out of scope" error. |
Replies: 1 comment 2 replies
|
You need to wrap your <MilkdownProvider>
<ProsemirrorAdapterProvider>
<MilkdownEditor/>
</ProsemirrorAdapterProvider>
</MilkdownProvider> |
You need to wrap your
<MilkdownEditor>component in<ProsemirrorAdapterProvider>tags like so: