diff --git a/app/static/js/scripts.js b/app/static/js/scripts.js index 74b037ea..6a52a6bb 100644 --- a/app/static/js/scripts.js +++ b/app/static/js/scripts.js @@ -691,6 +691,7 @@ function setupMarkdownEditorEnabler() { elem: document.querySelector('#' + dataId), resize: DownArea.RESIZE_VERTICAL, hide: ['heading', 'bold-italic'], + value: document.getElementById(dataId).value }); setupAutoResize(dataId); link.style.display = 'none'; diff --git a/app/templates/post/add_reply.html b/app/templates/post/add_reply.html index 6f0f1f7d..e3d9b7e2 100644 --- a/app/templates/post/add_reply.html +++ b/app/templates/post/add_reply.html @@ -29,6 +29,7 @@ elem: document.querySelector('#body'), resize: DownArea.RESIZE_VERTICAL, hide: ['heading', 'bold-italic'], + value: document.getElementById("body").value }); setupAutoResize('body'); }); diff --git a/app/templates/post/post.html b/app/templates/post/post.html index 95976b6c..d38b1766 100644 --- a/app/templates/post/post.html +++ b/app/templates/post/post.html @@ -34,6 +34,7 @@ elem: document.querySelector('#body'), resize: DownArea.RESIZE_VERTICAL, hide: ['heading', 'bold-italic'], + value: document.getElementById("body").value }); setupAutoResize('body'); }); diff --git a/app/templates/post/post_edit.html b/app/templates/post/post_edit.html index b380050d..7cf05a66 100644 --- a/app/templates/post/post_edit.html +++ b/app/templates/post/post_edit.html @@ -34,7 +34,7 @@ elem: document.querySelector('#body'), resize: DownArea.RESIZE_VERTICAL, hide: ['heading', 'bold-italic'], - value: {{ form.body.data | tojson | safe }}, + value: document.getElementById("body").value }); setupAutoResize('body'); }); diff --git a/app/templates/post/post_reply_edit.html b/app/templates/post/post_reply_edit.html index b0127761..9fcc5686 100644 --- a/app/templates/post/post_reply_edit.html +++ b/app/templates/post/post_reply_edit.html @@ -27,7 +27,7 @@ elem: document.querySelector('#body'), resize: DownArea.RESIZE_VERTICAL, hide: ['heading', 'bold-italic'], - value: {{ form.body.data | tojson | safe }} + value: document.getElementById("body").value }); setupAutoResize('body'); }); diff --git a/app/templates/user/edit_profile.html b/app/templates/user/edit_profile.html index 55e1e364..cafb3661 100644 --- a/app/templates/user/edit_profile.html +++ b/app/templates/user/edit_profile.html @@ -35,7 +35,7 @@ elem: document.querySelector('#about'), resize: DownArea.RESIZE_VERTICAL, hide: ['heading', 'bold-italic'], - value: {{ form.about.data | tojson | safe }} + value: document.getElementById("about").value }); setupAutoResize('about'); });