samedi 21 mars 2015

How can I use the CDN version of CKEditor with an alternative skin hosted on my server?


I have read the documentation and countless posts about using alternative skins (as opposed to the standard 'moono' skin) with CKEditor. I am using the CDN version of CKEditor, but I want to use a different skin. So, I have downloaded the skin of choice (bootstrapck) and I am hosting it from my server. Everything works great, until I push it to my production server. In production it is not recognizing the alternative skin I wish to use. Here is what I have:



<!DOCTYPE html>
<html lang="en">
<head>
<script src="http://ift.tt/1Hju5Sc"></script>
....
</head>
<body>
<textarea name="editor1" id="editor1"></textarea>
<script>
CKEDITOR.replace('editor1', {
skin : 'bootstrapck,/lib/ckeditor/skins/bootstrapck/'
});
</script>
</body>


This exact same code works perfectly on my local testing server, but it doesn't work at all on my production server. Here is what I see in the console on production:



Refused to execute script from 'http://ift.tt/1AXwD1l'
because its MIME type ('text/html') is not executable,
and strict MIME type checking is enabled.




Aucun commentaire:

Enregistrer un commentaire