Setup Function not working in TinyMCE
<p>when I am trying to add Setup: function in my TinyMCE javascript its converting my richtextbox to a simple textarea.</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
&lt;title&gt;&lt;/title&gt;

&lt;script type="text/javascript" src="//tinymce.cachefly.net/4.0/tinymce.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" &gt;
tinyMCE.init({
    selector: 'textArea',  // change this value according to your HTML
    menu: {
        edit: { title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall' },
        insert: { title: 'Insert', items: 'link media | template hr' },
        format: { title: 'Format', items: 'bold italic superscript subscript' },
        tools: { title: 'Tools', items: 'spellchecker code' }
    },
    resize: 'both',
    plugins: "wordcount",
    encoding: "xml",
    setup: function (ed) {
        ed.onSaveContent.add(function (ed, o) {
            o.content = o.content.replace(/&amp;#39/g, "&amp;apos");
        });
    }
});
 &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;form id="form1" runat="server"&gt;
 &lt;div&gt;
    &lt;textarea id="content1" rows="2" cols="20" runat="server" &gt;&lt;/textarea&gt;
    &lt;textarea id="content2" rows="2" cols="20" runat="server" &gt;&lt;/textarea&gt;
    &lt;textarea id="content3" rows="2" cols="20" runat="server" &gt;&lt;/textarea&gt;
    &lt;asp:Button ID="btnSave" Text="Save" runat="server"  OnClick="btnSave_Click"&gt;&lt;/asp:Button&gt;

&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>
</p>

<p>I dont know what is the issue, because without Setup: function, it's working absolutely fine.</p>