Sorry the old editor in my system it shows as editor_htmlarea, i tried searching for an updated version but dont seem to have
I just tried this: https://www.zen-cart.com/downloads.php?do=file&id=1184
Also does not load, same plain text editor
Sorry the old editor in my system it shows as editor_htmlarea, i tried searching for an updated version but dont seem to have
I just tried this: https://www.zen-cart.com/downloads.php?do=file&id=1184
Also does not load, same plain text editor
my guess is the editors are not loading at all, and its showing the default plain text mode.
Only the old HTMLAREA editor can load for some reason
new version released to fix compatibilty with older versions of ZC
Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!
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 Code:
<?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>
Gee, the NEWEST with 1.5.5 an older change for the loading of CKeditor works great... Troubleshot it with the good doctor today.
Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!
Just to be clear - our fix above was for ZC154 using CKEditor 3.7e ...but you really should upgrade!
Thanks. I will try this today.
I know what you mean by a hesitation to upgrade Zen all the time. I always get that same response , "Upgrade", "1.54 is ancient". Well, for those of us running a business on Zen, we know Upgrading is a Nightmare. About two weeks of working out the bugs and all the Mods that no longer work, etc. I dread the Zen upgrades and only do as a Last resort as it disrupts my business.
I'm not a coder so the code in black , "<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>", I assume you use to replace the code in orange ?
If so there are no "Script type" lines in the Ckeditor.php file for v 1.54 and earlier ??
Thanks for posting this fix. Much appreciated.
Bookmarks