Forums / Addon Admin Tools / Support Thread for CKEditor Plugin

Support Thread for CKEditor Plugin

Results 1 to 20 of 214
14 Aug 2013, 18:47
#2
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Support Thread for CKEditor Plugin

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:
<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>

To:
<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'https:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>


It seemed to solve my issue.. wanted to share and verify that this is the correct fix..
14 Aug 2013, 20:19
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Support Thread for CKEditor Plugin

This is what I have from the latest release for the plugin for v1.5.1:
<script type="text/javascript" src="//www.google.com/jsapi"></script>
Doing it this way makes it work regardless of SSL or not.
15 Aug 2013, 00:10
#4
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Support Thread for CKEditor Plugin

DrByte:

This is what I have from the latest release for the plugin for v1.5.1:
<script type="text/javascript" src="//www.google.com/jsapi"></script>
Doing it this way makes it work regardless of SSL or not.


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:
<script type="text/javascript" src="//www.google.com/jsapi"></script>


However, line 20 from the v1.3.9-1.5.0 admin folder reads (with my previous posted edit):
<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'https:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>


If I understand you correctly I should update the file to use the v1.5.1 version..
15 Aug 2013, 03:20
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Support Thread for CKEditor Plugin

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.
15 Aug 2013, 04:54
#6
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Posts:
10,011
Plugin Contributions:
1

Re: Support Thread for CKEditor Plugin

DrByte:

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.


Got it! Thanks..
01 Nov 2013, 14:48
#7
ropey avatar

ropey

New Zenner

Join Date:
Oct 2006
Posts:
87
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

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 of
{ name: 'Red Text',	 element: 'span' },
and 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?

Thanks in advance...
01 Nov 2013, 15:40
#8
ropey avatar

ropey

New Zenner

Join Date:
Oct 2006
Posts:
87
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

RoPey:

, but of course the actual presence of it isn't going to turn any text read - somewhere



Oops - that should have been ...isn't going to turn any text red!
01 Nov 2013, 17:00
#9
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Posts:
2,383
Plugin Contributions:
5

Re: Support Thread for CKEditor Plugin

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.
04 Nov 2013, 19:28
#10
ropey avatar

ropey

New Zenner

Join Date:
Oct 2006
Posts:
87
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

RoPey:

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 of
{ name: 'Red Text',     element: 'span' },
and 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 red - somewhere I need to define the relative CSS rules. Please could someone point me in the right direction?

Thanks in advance...


Well I seem to have found the answer, I was in the right place but needed to have the following code:
{ name: 'Red Text',	        element: 'span', attributes: { 'class': 'redtext' } },

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.

Any ideas would be welcome.

Thanks
18 Jan 2014, 09:16
#11
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Support Thread for CKEditor Plugin

For the first time in many years I am having problems with CKEDitor on one of my live sites.

The strangest thing is that CKEditor is working fine on the identical local clone of this site but on the live site it gives me a blank space where it should show up, be it on a product.php page or a define page or an ezpage. Nothing, silch, nada. Checking the source of the respective page actually shows the html text - but not on the page itself.

Running latest v 4.1.3 of CKEditor, both live and local.

Background:

ZC 1.5.1 just upgraded from 1.3.9h
same plugins installed live and local
PHP 5.4.23 on live site and PHP 5.4.9 on local install

This is what I did so far to find the culprit:

- uninstalled CKEditor completely and reinstalled, both live and local - to no avail
- downloaded entire live site file system to a separate temp folder and did a full file comparison of both - no difference (other than 2 configure.php files ofc)
- checked log files: nada!

Loaded the live site in the latest Firefox and Chromium (Linux Ubuntu 13.10) - same result. Chromium is set to clear all history, cookies etc upon exit so there can't be any leftover stuff which may falsify the output.

At this point in time I am thinking that it may have something to do with the server side PHP extensions (???) and have decided to go and ask for opinions here.

Any ideas please?

Thanks / Frank
18 Jan 2014, 16:33
#12
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Posts:
2,383
Plugin Contributions:
5

Re: Support Thread for CKEditor Plugin

and I also am having odd problems as well on php 5.4. As soon as i can I'm going to switch that cart to my server with 5.3 to see if it makes a difference.

In this case, some longer category descriptions and ezpages show fine on the site but do not show in the editor in admin.

My original post in this thread I've fixed to some extent - but I've done so many things to that site and have not gotten everything working correctly so I won't post what I did yet.
18 Jan 2014, 23:48
#13
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Support Thread for CKEditor Plugin

delia:

and I also am having odd problems as well on php 5.4. As soon as i can I'm going to switch that cart to my server with 5.3 to see if it makes a difference.......


Switched back to PHP Version 5.3.28 and it made no difference at all :frusty:
19 Jan 2014, 03:36
#14
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Support Thread for CKEditor Plugin

Reverted back to PHP 5.4.23, checked that all ckeditor folders had permissions 755 and files 644.

Logged out, rebooted, logged in again and still the same issue.

I am absolutely stumped!

Correction also to my earlier post: CKEditor version is 4.3.1 and not 4.1.3
19 Jan 2014, 07:23
#15
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Support Thread for CKEditor Plugin

Got it working - finally!!

Deleted the editors/ckeditor folder, obtained a fresh copy from www.ckeditor.com by using the latest full version (4.3.1) and added a few more plugins as well as moono-color skin (you can build your own ckeditor to your liking).

Downloaded my personal version, unzipped it and uploaded the new ckeditor to the editors folder. No changes needed in the admin file structure.

Finally, cleared the cache (yet again) in Firefox 26.0, logged into admin and selected a define page to edit.

Voila, ckeditor showed up in nice colors :smile:

Perseverence paid off
21 Jan 2014, 08:55
#16
clikchic avatar

clikchic

New Zenner

Join Date:
Oct 2005
Posts:
58
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

I am having a problem getting the ckeditor to show as an option in My Store>html editor. I installed as per the instructions that came with the plugin but for some reason it is not showing in the drop down menu. All that shows in that menu is Text. It also does not show in any of the other editor choice dropdowns.

Can anyone help me with what the issue might be?

I tried installing FCKeditor and it shows in the dropdown and will let me select it, but does not add the WYSIWYG editor anywhere.
21 Jan 2014, 09:44
#17
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Support Thread for CKEditor Plugin

clikchic:

I am having a problem getting the ckeditor to show as an option in My Store>html editor. I installed as per the instructions that came with the plugin but for some reason it is not showing in the drop down menu. All that shows in that menu is Text. It also does not show in any of the other editor choice dropdowns.

Can anyone help me with what the issue might be?

I tried installing FCKeditor and it shows in the dropdown and will let me select it, but does not add the WYSIWYG editor anywhere.


Can you give us a clue of your ZC version please?

Also check if your file your_admin/includes/init_includes/init_html_editor.php has CKEditor enabled.
21 Jan 2014, 10:12
#18
clikchic avatar

clikchic

New Zenner

Join Date:
Oct 2005
Posts:
58
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

Oops, I am using 1.51. Not sure about init_html_editor.php. It has this in the list of editors.

if (is_dir(DIR_FS_CATALOG . DIR_WS_EDITORS . 'ckeditor')) $editors_list['CKEDITOR'] = array('desc' => EDITOR_CKEDITOR, 'handler' => 'ckeditor.php', 'special_needs' => '');
21 Jan 2014, 14:22
#19
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Support Thread for CKEditor Plugin

clikchic:

Oops, I am using 1.51. Not sure about init_html_editor.php. It has this in the list of editors.

if (is_dir(DIR_FS_CATALOG . DIR_WS_EDITORS . 'ckeditor')) $editors_list['CKEDITOR'] = array('desc' => EDITOR_CKEDITOR, 'handler' => 'ckeditor.php', 'special_needs' => '');


Looks ok to me

You may want to delete the folder editors/ckeditor then download a fresh copy of CKEditor from the plugins area and do a fresh install. All being equal the CKEditor should show up in admin > My Store in the dropdown menu. If it does (as it should) select it and then log out from admin. Log into admin again and see if you can edit a define page or ezpage.
22 Jan 2014, 01:54
#20
clikchic avatar

clikchic

New Zenner

Join Date:
Oct 2005
Posts:
58
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

Hi frank18

Thanks for your help. I just tried this again, and had done so yesterday too but still no luck. Any other suggestions?