IP : 3.23.102.152 Hostname : host45.registrar-servers.com Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Disable Function : None :) OS : Linux PATH: / home/ ../ var/ softaculous/ wp52/ ../ moodle30/ ../ chevereto/ ../ hizup/ ../ 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();
}
});
});
}


});