asp.net mvc - Ckeditor does not show content in edit page -
i using ckeditor editor in blog, works charm in post page, in edit page can not load content. here way load ckeditor.
<div class="editor-field"> <textarea id="ckeditor" name="content"></textarea> @html.validationmessagefor(model => model.content) @section scripts { <script type="text/javascript"> ckeditor.replace('ckeditor', { filebrowserimagebrowseurl: '/ckfinder/ckfinder.html?type=images', filebrowserimageuploadurl: '/statics/upload/' }); ckfinder.setupckeditor(null, "@url.content("/ckfinder")"); </script> }
the content of textarea empty, there's nothing edit. must fill contents want edit.
Comments
Post a Comment