// default wysiwyg editor
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyle',
  	theme                             : 'advanced',
    plugins                           : 'contextmenu,dzcp,advimage,paste,flash,table,fullscreen,inlinepopups,spellchecker',
    language                          : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1           : 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,|,pastephp,|,forecolor,'
                                      + 'backcolor,|,smileys,flags,',
  	theme_advanced_buttons2           : 'paste,pastetext,pasteword,|,image,|,tablecontrols,|,dzcpuser',
   	theme_advanced_buttons3           : 'formatselect,fontselect,fontsizeselect,|,sub,sup,|,outdent,indent,|,fullscreen,clip,spellchecker,code,youtube',
    extended_valid_elements           : 'img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],'
                                      + 'hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]',
   	theme_advanced_toolbar_location   : 'top',
    spellchecker_languages            : 'English=en,+Deutsch=de',
   	theme_advanced_toolbar_align      : 'center',
    theme_advanced_statusbar_location : 'bottom',
    theme_advanced_resizing           : true,
    theme_advanced_resize_horizontal  : false,
    accessibility_warnings            : false,
    button_tile_map                   : true,
    entity_encoding                   : 'raw',
    verify_html                       : false,
    file_browser_callback             : 'fileBrowserCallBack'
  });
// mini wysiwyg editor
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyleMini',
  	theme                               : 'advanced',
    plugins                             : 'contextmenu,dzcp,inlinepopups',
    language                            : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1             : 'bold,italic,underline,|,link,unlink,|,image',
  	theme_advanced_buttons2             : '',
   	theme_advanced_buttons3             : '',
   	theme_advanced_toolbar_location     : 'top',
    theme_advanced_resizing             : true,
    theme_advanced_resize_horizontal    : false,
    theme_advanced_resizing_use_cookie  : false,
    accessibility_warnings              : false,
    entity_encoding                     : 'raw',
    verify_html                         : false,
    button_tile_map                     : true
  });
  
  // mini wysiwyg editor DL
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyleMiniDL',
  	theme                             : 'advanced',
    plugins                           : 'contextmenu,dzcp,advimage,paste,flash,table,fullscreen,inlinepopups,spellchecker',
    language                          : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1           : 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,|,pastephp,|,forecolor,'
                                      + 'backcolor,|,smileys,flags,',
  	theme_advanced_buttons2           : 'paste,pastetext,pasteword,|,image,|,tablecontrols,|,dzcpuser',
   	theme_advanced_buttons3           : 'formatselect,fontselect,fontsizeselect,|,sub,sup,|,outdent,indent,|,fullscreen,',
    extended_valid_elements           : 'img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],'
                                      + 'hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]',
   	theme_advanced_toolbar_location   : 'top',
    spellchecker_languages            : 'English=en,+Deutsch=de',
   	theme_advanced_toolbar_align      : 'center',
    theme_advanced_statusbar_location : 'bottom',
    theme_advanced_resizing           : true,
    theme_advanced_resize_horizontal  : false,
    accessibility_warnings            : false,
    button_tile_map                   : true,
    entity_encoding                   : 'raw',
    verify_html                       : false,
    file_browser_callback             : 'fileBrowserCallBack'
  });

// mini wysiwyg editor shout
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyleMinishout',
  	theme                             : 'advanced',
    plugins                           : 'contextmenu,dzcp,advimage,paste,flash,table,fullscreen,inlinepopups,spellchecker',
    language                          : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1           : 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,|,pastephp,|,forecolor,'
                                      + 'backcolor,|,smileys,flags,',
  	theme_advanced_buttons2           : 'paste,pastetext,pasteword,|,image,|,tablecontrols,|,dzcpuser',
   	theme_advanced_buttons3           : 'formatselect,fontselect,fontsizeselect,|,sub,sup,|,outdent,indent,|,fullscreen,',
    extended_valid_elements           : 'img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],'
                                      + 'hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]',
   	theme_advanced_toolbar_location   : 'top',
    spellchecker_languages            : 'English=en,+Deutsch=de',
   	theme_advanced_toolbar_align      : 'center',
    theme_advanced_statusbar_location : 'bottom',
    theme_advanced_resizing           : true,
    theme_advanced_resize_horizontal  : false,
    accessibility_warnings            : false,
    button_tile_map                   : true,
    entity_encoding                   : 'raw',
    verify_html                       : false,
    file_browser_callback             : 'fileBrowserCallBack'
  });

// mini wysiwyg editor shout
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'shoutTextfield_dis,shoutTextfield_en',
  	theme                             : 'advanced',
    plugins                           : 'contextmenu,dzcp,advimage,paste,flash,table,fullscreen,inlinepopups,spellchecker',
    language                          : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1           : 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,|,pastephp,|,forecolor,'
                                      + 'backcolor,|,smileys,flags,',
  	theme_advanced_buttons2           : 'paste,pastetext,pasteword,|,image,|,tablecontrols,|,dzcpuser',
   	theme_advanced_buttons3           : 'formatselect,fontselect,fontsizeselect,|,sub,sup,|,outdent,indent,|,fullscreen,',
    extended_valid_elements           : 'img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],'
                                      + 'hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]',
   	theme_advanced_toolbar_location   : 'top',
    spellchecker_languages            : 'English=en,+Deutsch=de',
   	theme_advanced_toolbar_align      : 'center',
    theme_advanced_statusbar_location : 'bottom',
    theme_advanced_resizing           : true,
    theme_advanced_resize_horizontal  : false,
    accessibility_warnings            : false,
    button_tile_map                   : true,
    entity_encoding                   : 'raw',
    verify_html                       : false,
    file_browser_callback             : 'fileBrowserCallBack'
  });


// newsletter wysiwyg editor
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyleNewsletter',
  	theme                               : 'advanced',
    plugins                             : 'contextmenu,dzcp',
    language                            : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1             : 'bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,|,image,forecolor,backcolor',
  	theme_advanced_buttons2             : '',
   	theme_advanced_buttons3             : '',
   	theme_advanced_toolbar_location     : 'top',
   	theme_advanced_toolbar_align        : 'left',
    theme_advanced_statusbar_location   : 'bottom',
    theme_advanced_resizing             : true,
    theme_advanced_resize_horizontal    : false,
    theme_advanced_resizing_use_cookie  : false,
    accessibility_warnings              : false,
    entity_encoding                     : 'raw',
    verify_html                         : false,
    button_tile_map                     : true
  });