feat: implemented autosave for sections

Now the changes made to the code in each section will be autosaved and loaded
back on next page load.
This commit is contained in:
Anand Chitipothu
2021-04-07 01:32:19 +05:30
parent 15b8b99ae2
commit f1508033a3
5 changed files with 78 additions and 4 deletions

View File

@@ -21,7 +21,8 @@
{% endmacro %}
{% macro LiveCodeEditor(name, code) %}
<div class="livecode-editor canvas-editor" id="editor-{{name}}">
<div class="livecode-editor canvas-editor" id="editor-{{name}}"
data-section="{{name}}">
<div class="row">
<div class="col-md-9">
<div>