$(document).ready(function() {
  $(".uniForm textarea").wymeditor({ 
    updateSelector: "input:submit",
    updateEvent: "click",
    //html: '<p>Hello, World!<\/p>',
    stylesheet: 'styles.css',
    
    //customize the tools menu with toolsItems option
    //'name' is the name of the command which will be executed
    //when the user clicks on the button
    //'title' is the button's title (automagically localized)
    //'css' is the button's class name
    boxHtml:   "<div class='wym_box'>"
              + "<div class='wym_area_top'>"
              + WYMeditor.TOOLS
              //+ WYMeditor.CONTAINERS
              //+ WYMeditor.CLASSES
              + "</div>"
              + "<div class='wym_area_left'></div>"
              + "<div class='wym_area_right'>"
              + "</div>"
              + "<div class='wym_area_main'>"
              + WYMeditor.HTML
              + WYMeditor.IFRAME
              + WYMeditor.STATUS
              + "</div>"
              + "<div class='wym_area_bottom'>"
              + "</div>"
              + "</div>",
    toolsItems: [
    {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'}, 
    {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'},
    {'name': 'CreateLink', 'title': 'Link', 'css': 'wym_tools_link'},
    {'name': 'Unlink', 'title': 'Unlink', 'css': 'wym_tools_unlink'},
    //{'name': 'InsertImage', 'title': 'Image', 'css': 'wym_tools_image'},
    //{'name': 'InsertOrderedList', 'title': 'Ordered_List', 'css': 'wym_tools_ordered_list'},
    //{'name': 'InsertUnorderedList', 'title': 'Unordered_List', 'css': 'wym_tools_unordered_list'},
    //{'name': 'InsertTable', 'title': 'Table', 'css': 'wym_tools_table'},
    {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'},
    {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'},
    {'name': 'ToggleHtml', 'title': 'Html', 'css': 'wym_tools_html'},
    {'name': 'Preview', 'title': 'Preview', 'css': 'wym_tools_preview'}]/*
    
    postInit: function(wym) {

    	//we make all sections in area_top render as dropdown menus:
    	jQuery(wym._box).find(".wym_area_right").hide();
    	jQuery(wym._box).find(".wym_area_main").css("marginRight", "0px");

		} */
    
  });
});


