{% load argonauts %}

{{ textarea }}

<script>
  {# this tells CKEditor where to find its static assets #}
  CKEDITOR_BASEPATH = {{ ckeditor_path|json }};
  (function (load) {
    {# only require CKEDITOR if it hasn't already be loaded. This allows loading your own ckeditor. #}
    if ( typeof CKEDITOR === 'object' )
      load();
    else
      require(['lib/ckeditor/ckeditor'], load);
  })(function() {
    CKEDITOR.replace({{ html_id|json }}, {{ config|json }});
  });
</script>
