    jQuery(function() {
        jQuery("#formfield-form-widgets-idea textarea, #formfield-form-widgets-why textarea, #archetypes-fieldname-text textarea").wymeditor(
        {
          //options
          updateSelector: ":submit",
          toolsItems: [
            {'name': 'Bold', 'title': 'Strong', 'css': 'wym_tools_strong'}, 
            {'name': 'Italic', 'title': 'Emphasis', 'css': 'wym_tools_emphasis'},
            {'name': 'InsertOrderedList', 'title': 'Ordered_List', 'css': 'wym_tools_ordered_list'},
            {'name': 'InsertUnorderedList', 'title': 'Unordered_List', 'css': 'wym_tools_unordered_list'},
            {'name': 'Undo', 'title': 'Undo', 'css': 'wym_tools_undo'},
            {'name': 'Redo', 'title': 'Redo', 'css': 'wym_tools_redo'},
            {'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': 'Paste', 'title': 'Paste_From_Word', 'css': 'wym_tools_paste'},
            {'name': 'ToggleHtml', 'title': 'HTML', 'css': 'wym_tools_html'}
          ],
/*          containersItems: [
            {'name': 'P', 'title': 'Paragraph', 'css': 'wym_containers_p'},
            {'name': 'H1', 'title': 'Heading_1', 'css': 'wym_containers_h1'},
            {'name': 'H2', 'title': 'Heading_2', 'css': 'wym_containers_h2'},
            {'name': 'H3', 'title': 'Heading_3', 'css': 'wym_containers_h3'}
          ],
*/
          
          classesHtml: "",
          containersHtml: "",
          
          editorStyles: [
            {'name': 'p', 'css': 'background:none; margin:0; padding: 0 0 0.5em 0'},
            {'name': 'body', 'css': 'background:none'}
          ],
   
      boxHtml:   "<div class='wym_box'>"
              + "<div class='wym_area_top'>"
              + "<input type='text' class='sidehide' /><label class='sidehide' for='idea-wym-hoax'>What is your idea?</label> <label class='sidehide' for='why-wym-hoax'>Why is your idea important?</label>"
              + WYMeditor.CONTAINERS
              + WYMeditor.CLASSES
              + WYMeditor.TOOLS
              + "</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>",

              
      //postInit is a function called when WYMeditor instance is ready
      //wym is the WYMeditor instance
      postInit: function(wym) {
          
        //we make all sections in area_top render as dropdown menus:
        jQuery(wym._box)
            //first we have to select them:
            .find(".wym_buttons")
            //finally we add some css to make the dropdown menus look better:
            .css("float", "left")
            .css("margin-right", "5px")
            .find("ul")
            .css("margin-bottom", "0px");
        
        //attach the hoax/screenreader labels to their inputs
        jQuery(wym._box).find("label.sidehide").attr('id', wym._box.id);
        /*//we make all sections in area_top render as dropdown menus:
        jQuery(wym._box)
            //first we have to select them:
            .find(".wym_dropdown")
            //finally we add some css to make the dropdown menus look better:
            .css("width", "120px")
            .css("float", "left")
            .css("margin-right", "5px")
            .css("margin-top", "10px")
            .find("ul")
            .css("width", "100px");
        */
        }

        });
    });