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
Printable View
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
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>
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>
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>
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.
Hi there
I have this in use on a clients site and I'd like to add some styles to the Styles dropdown so that they can stop adding in limitless html by pressing buttons repeatedly ;-)
I've had a look at the CKEditor website, specifically here http://docs.ckeditor.com/#!/guide/dev_styles and done lots and lots of Googling, but I'm still unsure how to achieve this. I believe I may need to change styles.js in the editors/ckeditor folder, but that doesn't seem to marry up to what I'm seeing in the current working Editor. There, there are styles such as Blue Title and Red Title, which I do not see defined in the styles.js.
I did add my own bit of code to that file in the form ofand an option Red Text did appear in the drop down, but of course the actual presence of it isn't going to turn any text read - somewhere I need to define the relative CSS rules. Please could someone point me in the right direction?Code:{ name: 'Red Text', element: 'span' },
Thanks in advance...
Thanks Diva Vocals for starting this thread. I too have had problems recently that I can't solve and it's been very difficult finding info.
The most recent problem developed on a dual language site when we upgraded to 1.5.1 and moved to a new server. No ckeditor boxes show up except in ezpages where I have the multi-language ezpages installed and even there only one box is showing.
I am using the most recent version of ckeditor and the database has been converted to UTF-8. Admin is not secure. I am clueless. As this is a javascript editor, server settings should not be a problem, I assume. But I think all was okay after the upgrade but have no proof now.
The plain text does show the html.
Well I seem to have found the answer, I was in the right place but needed to have the following code:
thus setting a class which can then be defined in my usual stylesheet. It's also possible to set the styles within that code. However, I'm still unsure how to get the styling to show in the editor itself, rather than just on the rendered site.Code:{ name: 'Red Text', element: 'span', attributes: { 'class': 'redtext' } },
Any ideas would be welcome.
Thanks