<textarea name="{{name}}" style="height:{{height}}px" cols="" rows="3" class="tiny_{{name}}">{{value}}</textarea>
<script type="text/javascript">
    jQuery = !jQuery ? $ : jQuery;
    jQuery(function () {

        tinymce.init({
            selector: ".tiny_{{name}}",
            theme: "silver",
            height: 400,
            plugins: [
                "advlist autolink link image media code responsivefilemanager fullscreen hr preview table"
            ],
            toolbar1: "undo redo | bold italic underline | forecolor backcolor | responsivefilemanager | link unlink | image media | hr | preview code fullscreen | ",
            toolbar2: "table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",
            image_advtab: true,
            filemanager_title: "Менеджер файлов",
            external_plugins: {
                "responsivefilemanager": "/_diamond/widgets/assets/jquery/tinymce/plugins/responsivefilemanager/plugin.min.js",
                //"flickr": "/_diamond/widgets/assets/jquery/tinymce/plugins/flickr/plugin.min.js",
               // "youtube": "/_diamond/widgets/assets/jquery/tinymce/plugins/youtube/plugin.min.js",
                "filemanager": "/_diamond/widgets/assets/jquery/tinymce/plugins/filemanager/plugin.min.js"
            },

            {% if accessKey > '' %}
            filemanager_access_key: '{{ accessKey }}',
            {% endif %}
            external_filemanager_path:'/_diamond/widgets/assets/jquery/filemanager/',
            convert_urls: false

        });


    });

</script>