asp.net mvc multiple fckeditors field
- by mazhar kaunain baig
how to add multiple fckeditor field on asp.net mvc page
ok here is the code
<% foreach (var OrganizationMeta in ((IEnumerable<Egovt.Models.OrganizationMeta>)ViewData["OrganizationMeta"])) { %>
<% if (OrganizationMeta.vcr_DateType == "text") { %>
<% TempData["OrganizationMeta"] = OrganizationMeta.vcr_MetaKey + Lang.int_LangId; %>
<% Html.RenderPartial("ControlRender"); %>
<% } %>
<% } %>
</div>
controlrender
<script src="<%= Url.Content("~/Content/js/fck/fckeditor.js") %>" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function()
{
var sBasePath = '<%= Url.Content("~/Content/js/fck/") %>';
var oFCKeditor = new FCKeditor('<%=TempData["OrganizationMeta"] %>');
oFCKeditor.BasePath = sBasePath;
oFCKeditor.ReplaceTextarea();
}
</script>
<%= Html.TextArea(TempData["OrganizationMeta"].ToString(),"", new { @name = TempData["OrganizationMeta"] })%>
How will i implement it