// -p The #p init will add a nbsp to empty paragraphs, the -p will remove empty paragraphs
// http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=15591

var tinyMCEconfig = {
  mode      : "none",
  theme     : "advanced",
  language  : "ru",
  // skin : "o2k7",
  editor_selector : "mceAdvanced",
  theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright, justifyfull,bullist,numlist,undo,redo,link,unlink",
  theme_advanced_buttons2 : "",
  theme_advanced_buttons3 : "",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_statusbar_location : "bottom",
  extended_valid_elements : "-p[id|style|dir|class|align],a[name|href|target|title|onclick],hr[class|width|size|noshade],font[face|size|color|style],-span[class|align|style],strong,em,u,strike"
};

tinyMCE.init(tinyMCEconfig);

// not used (problem with ajax)
/*tinyMCE.init({
  mode      : "none", // textareas
  theme     : "simple",
  language  : "ru",
  // skin : "o2k7",
  editor_selector : "mceSimple",
  valid_elements : "" +
  "-p[id|style|dir|class|align]," +
  "-ol[class|style]," +
  "-ul[class|style]," +
  "-li[class|style]," +
   "br"
}); */

// So if you really really must use BR elements for some odd reason then set this in your init code:
//
// tinyMCE.init({
//    forced_root_block : false,
//    force_br_newlines : true,
//    force_p_newlines : false
// });

