<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: 500,
            plugins: [
                "advlist autolink link image media code responsivefilemanager fullscreen hr preview table advtable lists wordcount searchreplace visualblocks autosave pagebreak codesample"
            ],
            toolbar1: "undo redo | bold italic underline | forecolor backcolor | responsivefilemanager | link unlink | image media | hr | preview code fullscreen visualblocks",
            toolbar2: "table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol | numlist bullist | outdent indent | blockquote |alignleft aligncenter alignright alignjustify",
            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,
            forced_root_block : true
        });


    });

</script>