2010-05-27 5 views
1

코드를입니다asp.net MVC 여러 fckeditors 필드

<% 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"] })%> 

그것

+0

입니다 때문에

이이 작품

<script src="<%= Url.Content("~/Content/js/fck/fckeditor.js") %>" type="text/javascript"></script> <%= Html.TextArea(TempData["OrganizationMeta"].ToString(),"", new { @name = TempData["OrganizationMeta"] })%> <script type="text/javascript"> { var sBasePath = '<%= Url.Content("~/Content/js/fck/") %>'; var oFCKeditor<%=TempData["OrganizationMeta"] %> = new FCKeditor('<%=TempData["OrganizationMeta"] %>'); oFCKeditor<%=TempData["OrganizationMeta"] %>.BasePath = sBasePath; oFCKeditor<%=TempData["OrganizationMeta"] %>.ReplaceTextarea(); } </script> 

희망, 빠른 솔루션을합니다. – Aristos

답변

1

나는 오류가 당신이 overload를 작성하는 것이라고 생각합니다. 다른 당신은 이전 버전 2가 버전 3