title: How to use TinyMCE textarea editor as a class?
body: <p>I have some TinyMCE textarea editor for my PHP programs like this one:</p>
  
  <pre><code>&lt;!-- TinyMCE --&gt;
  
  &lt;script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
      tinyMCE.init({
          // General options
          mode : "textareas",
          theme : "advanced",
          skin : "o2k7",
          plugins : &gt;"autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,i&gt;nsertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscree&gt;n,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
  
          // Theme options
          theme_advanced_buttons1 : &gt;"save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justif&gt;yright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
          theme_advanced_buttons2 : &gt;"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,bl&gt;ockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,&gt;preview,|,forecolor,backcolor",
          theme_advanced_buttons3 : &gt;"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advh&gt;r,|,print,|,ltr,rtl,|,fullscreen",
          theme_advanced_buttons4 : &gt;"insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,at&gt;tribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
          theme_advanced_toolbar_location : "top",
          theme_advanced_toolbar_align : "left",
          theme_advanced_statusbar_location : "bottom",
          theme_advanced_resizing : true,
  
          // Example word content CSS (should be your site CSS) this one removes &gt;paragraph margins
          content_css : "css/word.css",
  
          // Drop lists for link/image/media/template dialogs
          template_external_list_url : "lists/template_list.js",
          external_link_list_url : "lists/link_list.js",
          external_image_list_url : "lists/image_list.js",
          media_external_list_url : "lists/media_list.js",
  
          // Replace values for the template plugin
          template_replace_values : {
              username : "Some User",
              staffid : "991234"
          }
      });
  &lt;/script&gt;
  
  &lt;!-- /TinyMCE --&gt;
  </code></pre>
  
  <p>Now I'd like to use <strong>all code above as a class</strong>, something like this:</p>
  
  <p><code>&lt;textarea id="test" name="test" class="tinymce"&gt;&lt;/textarea&gt;</code></p>
  
  <p>How and where should I create <code>class="tinymce"</code>?</p>
  
  <p>I would like to use this class in many textareas at different php/html programs.</p>