[RESOLVED]CK editor is not working for asp.net pages

Resource interpreted as Script but transferred with MIME type text/html: "http://www.haquin.agora-me.com/ACMS/Scripts/Htmleditorjs/ckeditor/ckeditor.js". EditPageTextNew.aspx:54
Uncaught SyntaxError: Unexpected token < /ACMS/Scripts/Htmleditorjs/ckeditor/ckeditor.js:1
Resource interpreted as Script but transferred with MIME type text/html: "http://www.haquin.agora-me.com/ACMS/Scripts/Htmleditorjs/ckeditor/adapters/jquery.js". EditPageTextNew.aspx:54
Uncaught SyntaxError: Unexpected token < /ACMS/Scripts/Htmleditorjs/ckeditor/adapters/jquery.js:1
GET http://www.harlequin.agora-me.com/ckeditor/ckeditor.js?t=B8DJ5M3 404 (Not Found) EditPageTextNew.aspx:57
Uncaught TypeError: Object [object Object] has no method 'ckeditor'

CK editor is not working for asp.net pages

Its working on local server but as i uploaded on server its showing error:

<script type="text/javascript">

$(function () {
var config = {
toolbar:
[
['Styles', 'Format', 'Font', 'FontSize'], ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', 'Link', 'Unlink', 'Subscript', 'Superscript'],
['UIColor'], ['TextColor'], ['Undo', 'Redo']
]

};

config.height = "150px";
$(‘.jquery_ckeditor’).ckeditor(config);
});

</script>

plz suggets

</script>

Smadhu

Resource interpreted as Script but transferred with MIME type text/html:

Hi Smadhu,

As the error said,Your HTTP Response Header MIME didnot mathch the file type.

When broswer request the js or css file,it received the Content-Type of HTTP Response Header is  text/html type,it can not parse the css file or js file,So it throw error.

If your HTML file include the <!DOCTYPE html>,The brower is the standards and may be have the comptibility problem in different broswers.

So you can remove <!DOCTYPE html> from your html code.And try it again.

Hope this helps!

OK, so you’re hosting your ASP.NET website on DotNetPanel and you’re getting following error: “DotNetPanel IIS Modules Error AuthName directive not found” when trying to display CKEditor instance. Resolution to this problem is fairly simple.
Connect to your web site with FTP or DotNetPanel File Manager, go to CKEditor folder and delete any.htaccess files found. After that, reload your page and CKEditor should work as expected. 

http://ocvirek.com/?p=136

Leave a Reply