Expose editor in the Math.configure
#6905
benzend
started this conversation in
Feature Requests
Replies: 2 comments 2 replies
-
|
Came here looking to find out how this is meant to work. The examples page has editor inside useEditor but I can't make it work like that myself. |
Beta Was this translation helpful? Give feedback.
1 reply
-
That works for me in a useEffect in React. Probably not good for performance but I can't see any other way. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Need
editorto be accessible within theMath.configurationobject.Thinking something like:
or
Use Case
When using NextJS, with my editor example configuration below, I don't get access to the editor object.
I'm thinking that using a callback would allow
editorto be passed through when theonClickhappens, that way we're avoiding the initializer issueType
Other
Beta Was this translation helpful? Give feedback.
All reactions