Zen Cart Logo
Forums / Basic Configuration / CKEditor stopped working?

CKEditor stopped working?

Views: 8,854

Results 21 to 22 of 22
16 Jun 2020, 6:50 PM
#21
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

CKEditor stopped working?

You can also install the updated plugin which not only skips Google's outdated jsapi but also calls CKE from their CDN

24 Jan 2021, 10:57 AM
#22
trompo02 avatar

trompo02

New Zenner

Join Date:
Oct 2013
Location:
España
Posts:
5
Plugin Contributions:
0

Re: CKEditor stopped working?

Ryk:

It's Google's fault!

The CKEditor problem (and likely the others) is caused by loading modules with the jsapi loader being deprecated by Google, thus leaving the editor missing a required jQuery library.

That said, we've found it only affects ZC versions prior to 155 so it's not entirely Google's fault - you can't blame them if you're running relatively ancient software.

Uploading the newer CK Editor is unlikely to fix the problem on ZC154 so if you're not going to upgrade the site, you can fix the old module (v3.7e )

admin/includes/ckeditor.php

Replace lines 20/21 with

<?php /* ****** commented out as jsapi loader has been deprecated by Google ****** <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>

*/ ?>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
> 
> 
> 

Thanks Ryk, now working fine in 1.5.1 version.