tinyeditor javascript not working
<p>I have downloaded TinyEditor javascript example and i have to use it in my project. I have included all required files in the project and have written code as stated in the example.But still me TinyEditor is not working at all. It just shows the textarea and not the full editor.<br>
This is my code just to help understand my problem.
That is my index.ctp</p>

<pre><code>&lt;head&gt;   
&lt;?php echo $this-&gt;Html-&gt;script('tiny.editor.packed.js');?&gt;
&lt;?php  echo $this-&gt;Html-&gt;css('tinyeditor');?&gt;            
&lt;/head&gt;
&lt;body&gt;
&lt;script&gt;
var editor = new TINY.editor.edit('editor', {
    id: 'tinyeditor',
    width: 584,
    height: 175,
    cssclass: 'tinyeditor',
    controlclass: 'tinyeditor-control',
    rowclass: 'tinyeditor-header',
    dividerclass: 'tinyeditor-divider',
    controls: ['bold', 'italic', 'underline', 'strikethrough', '|', 'subscript', 'superscript', '|',
        'orderedlist', 'unorderedlist', '|', 'outdent', 'indent', '|', 'leftalign',
        'centeralign', 'rightalign', 'blockjustify', '|', 'unformat', '|', 'undo', 'redo', 'n',
        'font', 'size', 'style', '|', 'image', 'hr', 'link', 'unlink', '|', 'print'],
    footer: true,
    fonts: ['Verdana','Arial','Georgia','Trebuchet MS'],
    xhtml: true,
    cssfile: 'custom.css',
    bodyid: 'editor',
    footerclass: 'tinyeditor-footer',
    toggle: {text: 'source', activetext: 'wysiwyg', cssclass: 'toggle'},
    resize: {cssclass: 'resize'}
});
&lt;/script&gt;
&lt;div class="products form"&gt;
&lt;?php echo $this-&gt;Form-&gt;create('Product', array('enctype'=&gt;'multipart/form-data'));?&gt;

    &lt;fieldset&gt;
        &lt;legend&gt;&lt;?php echo __('Admin Add Product'); ?&gt;&lt;/legend&gt;
    &lt;?php
        echo $this-&gt;Form-&gt;input('name');
        echo $this-&gt;Form-&gt;input('descriptionimage(960px * 350px)',array('type'=&gt;'file'));

        echo $this-&gt;Form-&gt;input('service_id');
        echo $this-&gt;Form-&gt;input('definition');?&gt;

                &lt;!--&lt;textarea name="content"&gt;&lt;/textarea&gt;--&gt;



                &lt;textarea id="tinyeditor" style="width: 400px; height: 200px"&gt;&lt;/textarea&gt;

&lt;/fieldset&gt;
&lt;?php echo $this-&gt;Form-&gt;end(__('Submit'));?&gt;
&lt;/div&gt;
&lt;/body&gt;
</code></pre>

<p>Please can anyone help</p>
