If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / CKEditor stopped working?

CKEditor stopped working?

Started by kevinmc3 on 5 May 2020, 3:49 AM · Views: 8,909

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

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
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

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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.