Saving content and producing output

Hello,

I just started doing web development and would like to integrate codemirror onto mywebsite. I am currently using django framework. I have a hard time in saving the content of the text area. My goal was to save the content and then compile the code and produce it in the output editor.

I thought of using on.save()/on.Change but I really don’t know how it should be done actually. I already integrate the codemirror instance on the website so I just need the correct way to save it.

Also I tried using editor.getValue() to get the saved content but it did not work for me. Let me know if anyone can help me with this. Thank you!

2 Likes

Am also interested in this!

you want save in file on web server, or sql ,or local?