jQuery(function() {
    tinyMCE.init({
        document_base_url: jQuery("base").attr("href"),

        // General options
        mode : "specific_textareas",
        editor_selector : "mceEditor",
        theme : "advanced",
        plugins: "preview, pagebreak, addContentLinkButton, uploadImageButton",
        pagebreak_separator : "<!--pagecut-->",
        language: "ru",

        // Theme options
        // Initialize buttons
        theme_advanced_buttons1 : "bold,\
                                 italic,\
                              underline,\
                              separator,\
                            justifyleft,\
                          justifycenter,\
                           justifyright,\
                            justifyfull,\
                              separator,\
                                bullist,\
                                numlist,\
                              separator,\
                                   link,\
                                 unlink,\
                                  image,\
                                cleanup,\
                             linkButton,\
                      uploadImageButton,\
                              pagebreak,\
                                   code",
        
        theme_advanced_buttons2 : null,
        theme_advanced_buttons3 : null,
        theme_advanced_buttons4 : null,
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        convert_urls: false,
        content_css : "/public/files/default/css/all.css"
    });
});
