<div id='{{ id }}'>{{ value|safe }}</div>
<script>
var textarea = window.document.getElementById('{{ id }}-textarea');
var src = window.document.getElementById('{{ id }}');
var csrftoken = getCookie('csrftoken');
$(textarea).hide();

$(src).summernote({
    height: {{ height }},
    airMode: {{ airMode }},
    toolbar: {{ toolbar|safe }},
    lang: '{{ lang }}',
    onblur: function() {
        textarea.value = $(this).code();
    },
    onImageUpload: function(files, editor, position) {
        var imageIn