MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.135.184.27
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /var/softaculous/dada/../croogo/../yii/../phplot/../xms/../dada/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //var/softaculous/dada/../croogo/../yii/../phplot/../xms/../dada/_dada_mail_config.js
tinymce.init({


 
    file_browser_callback: function(field_name, url, type, win) { 
        // from http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript
        var w = window,
        d = document,
        e = d.documentElement,
        g = d.getElementsByTagName('body')[0],
        x = w.innerWidth || e.clientWidth || g.clientWidth,
        y = w.innerHeight|| e.clientHeight|| g.clientHeight;

        var cmsURL = '[[wwwurl]]/dada_mail_support_files/RichFilemanager/index.html?&field_name='+field_name+'&lang='+tinymce.settings.language;

        if(type == 'image') {            
            cmsURL = cmsURL + "&type=images";
        }

        tinyMCE.activeEditor.windowManager.open({
            file : cmsURL,
            title : 'Filemanager',
            width : x * 0.8,
            height : y * 0.8,
            resizable : "yes",
            close_previous : "no"
        });   
    },


    selector:              "textarea#html_message_body",
    height:                "30em", 
    image_advtab :          true,
    paste_data_images :     true,
    convert_fonts_to_spans : true,
    element_format :         "xhtml",
    entity_encoding :        "names",
    keep_styles:             true,
    protect: [
         /<\?dada.*?\?>/g
     ],
     visual: true, 
     convert_urls: false, 
     relative_urls: false,
     
      
     document_base_url :     "[[wwwurl]]/dada_mail_support_files/",
     
     remove_script_host: false, 
     visualblocks_default_state: true,
    
    plugins: [
        "autoresize advlist autolink lists link image charmap preview hr anchor ",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "nonbreaking table contextmenu directionality",
        "emoticons paste textcolor fullpage"
    ],

    toolbar1 : "undo redo  | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect | bullist numlist outdent indent | link image",
    toolbar2 : "preview | forecolor backcolor emoticons code fullpage", 
	
	setup: function(editor) {
	  editor.on('PreInit', function() {
	    editor.parser.addNodeFilter('#cdata', function(nodes) {
	      for (var i = 0; i < nodes.length; i++) {
	        nodes[i].remove();
	      }
	    });
	  });
	}
	
    
 });

MMCT - 2023