Skip to content

Instantly share code, notes, and snippets.

@drbyte
Last active June 16, 2020 21:44
Show Gist options
  • Select an option

  • Save drbyte/5e36419a4582080f530c92e1f4a6809f to your computer and use it in GitHub Desktop.

Select an option

Save drbyte/5e36419a4582080f530c92e1f4a6809f to your computer and use it in GitHub Desktop.

Revisions

  1. drbyte revised this gist Jun 16, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion change ckeditor from google api to jquery
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,5 @@ Look at your /admin/includes/ckeditor.php file
    <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
    // 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>
  2. drbyte created this gist Jun 16, 2020.
    8 changes: 8 additions & 0 deletions change ckeditor from google api to jquery
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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>