<commit_before>{% extends "admin/cms/page/plugin/change_form.html" %}
{% load staticfiles %}

{% block field_sets %}
    {{ block.super }}
    <div id="epiceditor"></div>
    <script src="http://code.jquery.com/jquery.js"></script>
    <script src="{% static 'djangocms_markdown/js/epiceditor.min.js' %}"></script>

            $(document).ready(function () {
                $('#markdownplugin_form>div').hide();
                var opts = {
                    basePath: '{{ STATIC_URL }}djangocms_markdown',
                    clientSideStorage: false
    <script>
                textarea: 'id_markdown_text', // Sync with #id_markdown_text
                focusOnLoad: true,
                autogrow: {
                    // One has to manually adjust the height a bit
                    minHeight: window.parent.$('.cms_modal-frame').height()-20,
                    maxHeight: window.parent.$('.cms_modal-frame').height()-20
                }
                var editor = new EpicEditor(opts).load();
            });
    </script>
{% endblock %}<commit_msg>Fixed script layout<commit_after>{% extends "admin/cms/page/plugin/change_form.html" %}
{% load staticfiles %}

{% block field_sets %}
    {{ block.super }}
    <div id="epiceditor"></div>
    <script src="http://code.jquery.com/jquery.js"></script>
    <script src="{% static 'djangocms_markdown/js/epiceditor.min.js' %}"></script>

    <script>
        $(function(){
            // Hide the native fieldset
            $('#markdownplugin_form').find('fieldset').hide();

            var opts = {
                basePath: '{% static 'djangocms_markdown' %}',
                clientSideStorage: false,
                textarea: 'id_markdown_text', // Sync with #id_markdown_text
                focusOnLoad: true,
                autogrow: {
                    // One has to manually adjust the height a bit
                    minHeight: window.parent.$('.cms_modal-frame').height()-20,
                    maxHeight: window.parent.$('.cms_modal-frame').height()-20
                }
            };

            var editor = new EpicEditor(opts).load();
        });
    </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.15157116451016636, 'fraction_numerical': 0.0036968576709796672, 'mean_word_length': 1.8637566137566137, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '257193', 'n_tokens_mistral': 656, 'n_tokens_neox': 585, 'n_words': 114}