0

I am using Editor.md (https://pandao.github.io/editor.md/en.html) on a project. The backend is flask. I fetch all of the information from the DB and load into the render page:

<div id="test-editormd">
    <textarea  id="jobDescription">
        {{job_data['job_description']}}
    </textarea>
</div>

The html page template imports the Editor.md lib in the end of the page and the CSS on top of the page:

<script src="https://cdnjs.cloudflare.com/ajax/libs/editor-md/1.5.0/editormd.min.js" integrity="sha512-bbYbjE426azR7zve+4dGnNpiD7Hp+zKzvWttsxa4Uc0t2GyA6FjTHLZ+3Q5BkoUAG/TZHMzVYwFEIT58HHEANw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js"></script>
<script src="../static/assets/editormd/languages/en.js"></script>
<script type="text/javascript">
    var testEditor;

    $(function() {
        testEditor = editormd({
            id      : "test-editormd",
            width   : "100%",
            height  : 1000,
            path    : "../static/assets/editormd/lib/"
        });
    });
</script>

Problem: It loads ok and works on my local machine when I run it.

enter image description here

But when I deploy to the server I get the forever will of death lol:

enter image description here

Any ideas of what can be causing the problem?

Thanks!

0 Answers0