%}
<script type="module">
    import {Catalog, ContentArea} from "{{ url_for('static', filename='js/ideanote.js') }}";

    $(document).ready(function () {
        $('.menu .item').tab();

        let contentArea = new ContentArea({
            editContainer: "#editor",
            viewContainer: "#preview",
            outlineContainer: "#toc",
            toolClassName: ".ideanote-tool",
            submitContentUri: "{{ url_for('core.update_note') }}",
            submitImageUri: "{{ url_for('core.upload