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
{{ message }}
Repository navigation
Unable to access ref on CodeEditor using NextJS dynamic #154
@jaywcjlove Thanks for your effort. I think I've managed to come up with a solution that works for anyone that's interested 😊 Please take a look and see if you can reproduce on your end, then maybe you can share in the docs for others?
1. Create a component called WrappedEditor.tsx where you import the CodeEditor normally
Activity
jaywcjlove commentedon Jul 3, 2023
@saleemameen I hope the above issue can help you, I can't help you.
I tried some methods but none of them work
https://codesandbox.io/s/react-textarea-code-editor-example-nextjs-https-github-com-uiwjs-react-textarea-code-editor-issues-154-kpdvfm?file=/pages/index.js
saleemameen commentedon Jul 3, 2023
@jaywcjlove Thanks for your effort. I think I've managed to come up with a solution that works for anyone that's interested 😊 Please take a look and see if you can reproduce on your end, then maybe you can share in the docs for others?
1. Create a component called WrappedEditor.tsx where you import the CodeEditor normally
2. Create a component called CodeEditor.tsx where you import the WrappedEditor component dynamically