jquery - ReferenceError: CKEDITOR is not defined -
may repeated question, solutions provided on net including stackoverflow q-a not resolved issue. ckeditor (4.5.3) integrated in mvc application. ckeditor using on textarea in partial view. same partial view used in create , edit post form. both form having same .chtml page. partial view :
<textarea id="description" name="description" class="form-control" >@html.raw(model.description)</textarea>
having script:
<script type="text/javascript"> ckeditor.replace('description', { filebrowserimageuploadurl: '@url.action("uploadeditorimage", "administrator")', htmlencodeoutput: true }); </script>
in .chtml page added : <script src="~/ckeditor/ckeditor.js"></script>
generating proper js examined in response.
config.js :
ckeditor.editorconfig = function( config ) { config.image_previewtext = ckeditor.tools.repeat(' ', 2); config.extraplugins = 'onchange'; };
in create able see upload image control in edit, not showing control. in browser error console showing
referenceerror: ckeditor not defined
why should this. edit form having
$("#description").val(ckeditor.instances['description'].getdata());
any suggestions ?
Comments
Post a Comment