Support thread for CKEditor Plugin for Zen Cart
NOTE: IF YOU ARE USING CKEDITOR VERSION 5, that part of the discussion starts here: www.zen-cart.com/showthread.php?209573-Support-Thread-for-CKEditor-Plugin&p=1402306#post1402306
Support thread for CKEditor Plugin for Zen Cart
NOTE: IF YOU ARE USING CKEDITOR VERSION 5, that part of the discussion starts here: www.zen-cart.com/showthread.php?209573-Support-Thread-for-CKEditor-Plugin&p=1402306#post1402306
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
I had a client report that CKEditor had just SUDDENLY stopped working.. Upon further examination, I realized the issue with CKEditor not working was due to the fact that line 20 of the "YOUR_ADMIN/includes/ckeditor.php" file was failing if you are logged in to the admin using SSL..
I thought that an upgrade to the latest and greatest version might solve the problem. It didn't.. Then I took a look at line 20 of the "YOUR_ADMIN/includes/ckeditor.php" file in the newest CKEditor fileset and found what I THINK is an error..
I changed line 20 of the "YOUR_ADMIN/includes/ckeditor.php" file as follows:
From:
To:Code:<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>
It seemed to solve my issue.. wanted to share and verify that this is the correct fix..Code:<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'https:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
This is what I have from the latest release for the plugin for v1.5.1:Doing it this way makes it work regardless of SSL or not.Code:<script type="text/javascript" src="//www.google.com/jsapi"></script>
.
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.
I should have been clear in my previous post that I was using the 1.3.9 - 1.5.0 admin files in the latest download.. (My client is still running v1.5.0) There are three admin folders in the zip file. One for v1.3.9-1.50, another for v1.5.1, and a 3rd for v1.6..
line 20 from the v1.5.1 admin folder reads:
However, line 20 from the v1.3.9-1.5.0 admin folder reads (with my previous posted edit):Code:<script type="text/javascript" src="//www.google.com/jsapi"></script>
If I understand you correctly I should update the file to use the v1.5.1 version..Code:<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'https:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
While I'm pretty sure the entire file can be used, I'm confident that updating that one line will fix the problem you first posted about.
.
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.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Thanks to stevesh!
In case anybody else comes along and wants to accomplish the same, there is a bit more involved.
First, download the addon:
http://ckeditor.com/addon/justify
Unzip the file, then upload the folder "justify" directly into /editors/ckeditor/plugins
Next, open this file /editors/ckeditor/config.js and add the following snippet:
config.extraPlugins = 'justify';
It's up and running smooth for me. Best of luck!
All: Any thoughts about having a second version of the plugin offering the Full CKEditor package instead of Standard?
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
.
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.
Someone wanted the ability to change fonts. I could do it as a one-off if there's no widespread interest.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.