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):
- <tr>
- <td><strong>Description :</strong> </td>
- <td style="padding-left: 3%;padding-bottom: 5px;">
- @*@Html.TextAreaFor(model => model.Description, new { @class = "ckeditor", @id = "editor1" })
- @Html.ValidationMessageFor(model => model.Description)*@
- <textarea id="editor1" class="ckeditor">@Model.Content</textarea>
- @*@Html.TextAreaFor(model => model.Content, new { @class = "ckeditor", @id = "editor1" })*@
- <script type="text/javascript">
- CKEDITOR.replace('editor1', {
- filebrowserImageBrowseUrl: '/AdminBlog/uploadPartial',
- filebrowserImageUploadUrl: '/AdminBlog/uploadnow'
- });
- function updateValue(id, value) {
-
- document.getElementById(id).value = value;
- }
- </script>
- <span id="errorContent" style="color: Red;"></span>
- </td>
- </tr>