"use strict"; tinymce.init( { selector: '#editor', // init: setup: function(editor) { editor.on('init' , function() { this.getDoc().body.style.fontFamily = 'Yekan'; this.getDoc().body.style.fontSize = '12pt'; }); }, directionality: 'rtl', theme: 'modern', plugins:['link' , 'advlist' , 'media' , 'image' , 'autolink' , 'lists', 'hr', 'charmap' , 'preview' , 'anchor' , 'paste' , 'table' , 'textcolor' , 'emoticons', 'searchreplace' , 'wordcount' , 'save' , 'visualblocks' , 'nonbreaking' , 'contextmenu', 'template' , 'imagetools' , 'directionality' , 'textpattern' , 'colorpicker' , 'fullscreen' , 'autoresize' , 'toc'], image_advtab: true, image_caption: true, toolbar: ['undo redo | fontselect fontsizeselect | ltr rtl | alignleft aligncenter alignright alignjustofy | outdent indent | searchreplace | preview fullscreen', 'bold underline | forecolor backcolor | emoticons | bullist numlist | formatselect styleselect | removeformat', 'link image media | insert | toc'], font_formats: 'Times New Roman=times new roman, times; Verdana=verdana; Arial=arial, sans-serif; Yekan=Yekan;', fontsize_formats: '11pt 12pt 14pt 15pt 16pt 17pt 18pt 19pt 20pt 22pt', content_css: '/stylesheet/css/elements/tinymce.css', convert_urls: false, // file_browser_callback: function (fieldName , url, type, win) // { // $('#uploadImageForm input[id="file"]').click(); // } file_picker_callback: function (callback , value, meta) { $('#uploadImageForm input[id="file"]').click(); } });