Edit code and save to DB
zernonia opened this issue · comments
We can use code-mirror or monaco.
(code-mirror might be easier to setup)
Learn.nuxt has implemented this if they wouldn't mind using the code :) -> https://github.com/nuxt/learn.nuxt.com/tree/main
Thanks @cpreston321 ! Yup I know about Learn.Nuxt using Monaco instance. The more I think about it the more I feel like it's too much trouble and challenges just to make monaco works.
Furthermore, I think editing code allow user to made some minor changes, we don't need the full fledged Monaco feature.