Forums / All Other Contributions/Addons / CK Editor driving me mad!!!

CK Editor driving me mad!!!

Views: 1,544

Results 1 to 20 of 20
13 May 2015, 9:11 PM
#1
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

CK Editor driving me mad!!!

I am really new to Zen Cart and finding it very cool indeed. But, I am trying to install CK editor. Every time I try to check that it has installed OK I only still get a drop down option of TEXT either in MyAdmin>configuration>My Store>HTML Editor or any other drop down editor option. I'm thinking that maybe I'm installing the files incorrectly. Here's my interpretation:

i ckeditor.php file (from the unzipped admin/includes folder)gets placed in the includes folder inside of my renamed - admin folder.

ii the file ckeditor.php from inside admin/includes/languages/english/extra_definitions folder goes into my renamed -admin folder/includes/languages/english/extra_definitions folder.

iii The entire folder named ckeditor gets copied into catalog/editors folder.

I have also added the following line in admin/includes/configure.php define('DIR_WS_EDITORS', '<em>THE NAME OF FOLDER</em/');

Other info: I use FileZilla to upload files and it is set to ASCII should this be AUTO?

I have searched and searched the forum, FAQs and Wiki but not found an answer. A users different (older) version of Zen Cart is mentioned but php file lines did not match my version. So, I didn't attempt to alter anything in this newer version.

I would be grateful for assistance in this matter.

Regards from a very frustrated Man from Mars ::frusty:

13 May 2015, 10:44 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: CK Editor driving me mad!!!

admin -> configuration -> my store. go to the bottom of the page and set editor to ckeditor

Zen cart PCI compliant Hosting

13 May 2015, 11:26 PM
#3
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

Thanks Merlinpa1969

If you read the first paragraph of my post you would see that I have done exactly that. On my screen the second to bottom line shows HTML Editor = None. At the top right of the screen is a drop down menu which states PLAIN TEXT. When I click on the down arrow it repeats PLAIN TEXT. There is NO option to change to HTML. Or am I missing something?

Regards

Still frustrated Man from Mars :frusty::frusty:

13 May 2015, 11:52 PM
#4
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

So you renamed the CKeditor plugin admin folder named
admin_for_v151_thru_v160 ?

To your renamed admin folder and followed the instructions provided in the CKEditor plugin

I couldn't tell from your description of steps if you followed the recommended procedure or if you were using a different process to install the plugin.

FROM THE CKEditor README file:

Installation is simple:

  1. Download and unzip this file (you've done that if you're reading this)
  1. In the unzipped folder, you'll see several variations of an "admin" foldername, offering options for various ZC versions. Find the one the matches your site's version, and rename it to "admin". Delete or ignore the other "admin_xxxxxx" folders, as they will not be relevant to you.
  1. Now, since your server's "admin" folder has actually been renamed to something other than "admin", go find out what that foldername is on your server now. You'll need that new foldername in the next step.
  1. Upload the various files from your PC to your website, placing each file in the same folder where you found it in the zip, ie:
  • /admin/includes/ckeditor.php goes to your website into your existing /renamed-admin/includes/ folder.
  • /admin/includes/languages/english/extra_definitions/ckeditor.php is added to your /renamed-admin/includes/languages/english/extra_definitions/ folder
  • /editors/ckeditor/ (the entire folder) gets copied to your /editors/ folder
  1. When you login to your admin area, select CKEditor from the list of editors on applicable pages.
  1. (Recommended) You can also set your default editor choice via Admin->Configuration->My Store->HTML Editor (note: this may not take effect until you log in the next time)
  1. (Optional) You can change the folder in which the editor files live, by renaming the folder and adding the following line to your admin/includes/configure.php file:

define('DIR_WS_EDITORS', 'the new name of your folder/');
If you are using an external add-in for uploading images or other content, then this step moves from optional to recommended, for security reasons.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

14 May 2015, 12:33 AM
#5
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

Thanks Rixstix

I may have completely lost it now, but there is no folder or file that I can find called ' admin_for_v151_thru_v160 ' in the unzipped folder or anywhere else in zen cart. Please enlighten further.

14 May 2015, 1:06 AM
#6
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

Man from Mars:

Thanks Rixstix

I may have completely lost it now, but there is no folder or file that I can find called ' admin_for_v151_thru_v160 ' in the unzipped folder or anywhere else in zen cart. Please enlighten further.

From where did you download the CKEditor plugin?

Doesn't sound like it was a supported version from the Plugins section.

https://www.zen-cart.com/downloads.php?do=file&id=1098

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

14 May 2015, 1:39 AM
#7
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

I've just downloaded the zip folder again and unpacked it. I did source it from ZC plugins and found where the folder had that title. I couldn't find it due to the fact I re-named it as per the instructions. right, I have renamed the folder to my secret admin name. If I can ask nicely is there a special way to upload the files that is different to what I said in my opening post? I have got in front of me a hard copy of the read me file on how to install this editor. This procedure is the same as I followed originally. As I use an FTP program (Filezilla) should I use Auto transfer instead of ASCII for this plugin?

As I am in the UK I'm going to log off now as it is 02:38 and feeling a little tired. I will resume later today to rectify my issue.

Thanks for your help. Appreciated:smile:

14 May 2015, 12:43 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: CK Editor driving me mad!!!

I'd guess your files aren't ending up in the right places. Try this:

Copy the editors folder from the mod to the root directory of your site.

Open the admin_for_v151_thru_v160 folder from the mod and copy the includes folder therein to your renamed admin folder.

Unless you want the editor somewhere other than in the /editors folder (and I can't think of a reason you would), ignore the configure.php edit.

Works for me. I don't know about the FTP setting. Mine is always set to Binary (the FireFTP default).

Just to make sure, there is no catalog folder in Zencart, and shouldn't be.

15 May 2015, 1:52 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: CK Editor driving me mad!!!

Man from Mars:

If I can ask nicely is there a special way to upload the files that is different to what I said in my opening post? I have got in front of me a hard copy of the read me file on how to install this editor. This procedure is the same as I followed originally. As I use an FTP program (Filezilla) should I use Auto transfer instead of ASCII for this plugin?
I always just use AUTO for FTP upload method. There's nothing special about it.

.
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.

15 May 2015, 1:58 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: CK Editor driving me mad!!!

Man from Mars:

On my screen the second to bottom line shows HTML Editor = None. At the top right of the screen is a drop down menu which states PLAIN TEXT. When I click on the down arrow it repeats PLAIN TEXT. There is NO option to change to HTML. Or am I missing something?that suggests that the /your-admin/includes/ckeditor.php file is not the right one, or the /your-admin/init_includes/init_html_editors.php file is missing or the code in it isn't able to find the editor code when trying to match up the DIR WS EDITORS directory with the name of the ckeditor files.
Basically the code can't give you the editor in the pull down because the code can't find the editors files because something's missing in your sites files.

.
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.

15 May 2015, 8:41 PM
#11
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

DrByte:

that suggests that the /your-admin/includes/ckeditor.php file is not the right one, or the /your-admin/init_includes/init_html_editors.php file is missing or the code in it isn't able to find the editor code when trying to match up the DIR WS EDITORS directory with the name of the ckeditor files.
Basically the code can't give you the editor in the pull down because the code can't find the editors files because something's missing in your sites files.

I assume that from your quote /your-admin/init_includes/init_html_editors.php the folder includes is missing? If it is and I'm checking the right init_includes folder, I haven't got a init_html_editors php file! I will search around to see if any of my backup files have it to begin with.
Thanks for this info. :smile:

15 May 2015, 9:02 PM
#12
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

:dontgetit

Well, knock me down with a feather!!!

At last we are getting somewhere. I have at least got CKEd' in my drop down list. :smile:

But, can you or anyone, tell me why am I getting no icons on the button bars of the editor? (see image below).

Very grateful for all answers so far. I am very impressed.

Attachment #15301

15 May 2015, 9:04 PM
#13
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: CK Editor driving me mad!!!

Man from Mars:

:dontgetit

Well, knock me down with a feather!!!

At last we are getting somewhere. I have at least got CKEd' in my drop down list. :smile:

But, can you or anyone, tell me why am I getting no icons on the button bars of the editor? (see image below).

Very grateful for all answers so far. I am very impressed.

Attachment #15301

What browser and is some sort of compatibility mode enabled? Whatever the setting (on or off) can it be switched to the other option?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

15 May 2015, 9:16 PM
#14
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

I am using Chrome as my browser. I cant find anything unusual that would restrict these images.

15 May 2015, 9:23 PM
#15
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

Attachment #15302

this is from /myadminname/mystore/editors folder. Is ckeditor-custom-button-bar.png in the correct place?

15 May 2015, 11:08 PM
#16
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: CK Editor driving me mad!!!

Did you reupload the files as suggested (not as ascii)? Images don't typically go well via ascii...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

16 May 2015, 1:23 AM
#17
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

mc12345678:

Did you reupload the files as suggested (not as ascii)? Images don't typically go well via ascii...

Yes, I've tried Auto & Binary but nothing seems to work. In case the file had been corrupted in some way I have tried replacing it with a new file from an unpacked zip, but that hasn't made any difference. I'm stuck again of what to do next. I am extremely reluctant to do a complete restore of my whole site just for these icons.

16 May 2015, 2:16 AM
#18
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: CK Editor driving me mad!!!

Have you tried a different browser or verifying that your current one is up-to-date? I often see that issue when I am using an older version of IE or when it is in/out of compatibility mode (not sure which status it occurs in, but if I see the problem I change the status...)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

16 May 2015, 2:38 AM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: CK Editor driving me mad!!!

Man from Mars:

I assume that from your quote /your-admin/init_includes/init_html_editors.php the folder includes is missing? If it is and I'm checking the right init_includes folder, I haven't got a init_html_editors php file! I will search around to see if any of my backup files have it to begin with.
Thanks for this info. :smile:
Yes, I mistakenly left out the includes dir in my previous post.

Man from Mars:

Attachment #15302

this is from /myadminname/mystore/editors folder. Is ckeditor-custom-button-bar.png in the correct place?
Actually, that .png file is simply a picture of what the button bar would look like. It's just "documentation", and not used by the editor.

Your "editors" folder should NOT be inside your admin folder.

All it needs to work is:
/your-admin/includes/ckeditor.php
/your-admin/includes/init_includes/init_html_editors.php
/your-admin/includes/languages/english/extra_definitions/ckeditor.php
/editors/ckeditor/ folder

.
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.

16 May 2015, 2:27 PM
#20
man_from_mars avatar

man_from_mars

New Zenner

Join Date:
Mar 2015
Location:
Broadchurch
Posts:
77
Plugin Contributions:
0

Re: CK Editor driving me mad!!!

DrByte:

Yes, I mistakenly left out the includes dir in my previous post.

Actually, that .png file is simply a picture of what the button bar would look like. It's just "documentation", and not used by the editor.

Your "editors" folder should NOT be inside your admin folder.

All it needs to work is:
/your-admin/includes/ckeditor.php
/your-admin/includes/init_includes/init_html_editors.php
/your-admin/includes/languages/english/extra_definitions/ckeditor.php
/editors/ckeditor/ folder

Firstly, yes my editors folder is NOT inside myadmin folder and all folders and files are as your list.
Secondly, I launched IE and 'OMG' ckeditor works without any problems :D
Lastly, I then went back into Chrome and guess what? amazingly, it now works!! I'm not going to ask anyone why this is, cause I don't need to know ((hopefully).

Thank you all so very much for your input. Special mention to Dr Byte, you certainly know your stuff. :cool: