// default wysiwyg editor
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyle',
  	theme                               : 'advanced',
		skin 								: 'o2k7', // Test
		skin_variant 						: 'silver', // Test
    plugins                             : 'contextmenu,dzcp,inlinepopups,spellchecker,visualchars,xhtmlxtras',
    language                            : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1             : 'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,|,image,picupload,youtube,forecolor,backcolor',
  	theme_advanced_buttons2             : 'smileys,pastephp,clip,spellchecker,charmap,|,blockquote,|,undo,redo,|,dzcpuser',
   	theme_advanced_buttons3             : '',
   	theme_advanced_toolbar_location     : 'top',
   	theme_advanced_toolbar_align        : 'left',
    theme_advanced_statusbar_location   : 'bottom',
    //extended_valid_elements             : 'textarea[cols|rows|disabled|name|readonly|class]',
    spellchecker_languages              : 'English=en,+Deutsch=de',
    theme_advanced_resizing             : true,
    theme_advanced_resize_horizontal    : false,
    theme_advanced_resizing_use_cookie  : false,
    //remove_linebreaks                   : false,
    accessibility_warnings              : false,
    entity_encoding                     : 'raw',
    verify_html                         : false,
    button_tile_map                     : true
  });

// mini wysiwyg editor
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyleMini',
  	theme                               : 'advanced',
    plugins                             : 'contextmenu,dzcp,inlinepopups,xhtmlxtras',
    language                            : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1             : 'bold,italic,underline,strikethrough,|,link,unlink,|,image,picupload',
  	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
  });

// newsletter wysiwyg editor
  tinyMCE.init({
    mode                                : 'specific_textareas',
    editor_selector                     : 'editorStyleNewsletter',
  	theme                               : 'advanced',
    plugins                             : 'contextmenu,dzcp,xhtmlxtras,insertdatetime,visualchars',
    language                            : (lng == 'de' ? lng : 'en'),
  	theme_advanced_buttons1             : 'bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,|,insertdate,inserttime',
  	theme_advanced_buttons2             : 'image,picupload,forecolor,backcolor,|,charmap,|,blockquote,|,undo,redo',
   	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
  });
