Skip to content

Instantly share code, notes, and snippets.

@drbyte
Last active June 16, 2020 21:44
Show Gist options
  • Save drbyte/5e36419a4582080f530c92e1f4a6809f to your computer and use it in GitHub Desktop.
Save drbyte/5e36419a4582080f530c92e1f4a6809f to your computer and use it in GitHub Desktop.
ckeditor fix for very old implementations
Look at your /admin/includes/ckeditor.php file
// REMOVE THESE TWO LINES:
<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>
<script type="text/javascript">if (typeof jQuery == 'undefined') google.load("jquery", "1");</script>
// REPLACE THEM WITH THIS LINE:
<script>window.jQuery || document.write('<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"><\/script>');</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment