+{% block extrabody %}
+ <script type="text/javascript" charset="utf-8">
+ $(function() {
+ {% for scriptlet in scriptlets %}
+ editor.registerScriptlet("{{scriptlet.name}}",
+ function(editor, panel, params) {
+ {{ scriptlet.code|safe }}
+ });
+ {% endfor %}
+ });
+ </script>
+{% endblock extrabody %}
+