asp.net mvc multiple fckeditors field

Posted by mazhar kaunain baig on Stack Overflow See other posts from Stack Overflow or by mazhar kaunain baig
Published on 2010-05-27T09:51:33Z Indexed on 2010/05/27 13:41 UTC
Read the original article Hit count: 280

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc