Manoj Maharana

Manoj Maharana

  • NA
  • 362
  • 124k

ckeditor taking time to load in asp .net mvc 4

Oct 5 2016 10:27 AM

I am using Ckeditor for edit and insert data into mssql database in mvc 4 c#.

While editing data if any content just like images and contents(if content are more) then it will takes too much time to load the edit page..what should i do??

how to solve these problem???

Here is my code(Edit.cshtml):

  1. <tr>  
  2.                            <td><strong>Description :</strong> </td>  
  3.                            <td style="padding-left: 3%;padding-bottom: 5px;">  
  4.                                @*@Html.TextAreaFor(model => model.Description, new { @class = "ckeditor", @id = "editor1" })  
  5.                                    @Html.ValidationMessageFor(model => model.Description)*@  
  6.                                <textarea id="editor1" class="ckeditor">@Model.Content</textarea>  
  7.                                @*@Html.TextAreaFor(model => model.Content, new { @class = "ckeditor", @id = "editor1" })*@  
  8.                                <script type="text/javascript">  
  9.                                    CKEDITOR.replace('editor1', {  
  10.                                        filebrowserImageBrowseUrl: '/AdminBlog/uploadPartial',  
  11.                                        filebrowserImageUploadUrl: '/AdminBlog/uploadnow'  
  12.                                    });  
  13.                                    function updateValue(id, value) {  
  14.        // this gets called from the popup window and updates the field with a new value   
  15.        document.getElementById(id).value = value;  
  16.    }  
  17.                                </script>  
  18.                                <span id="errorContent" style="color: Red;"></span>  
  19.                            </td>  
  20.                        </tr>  
 

Answers (1)