Forums / Addon Admin Tools / Support Thread for CKEditor Plugin

Support Thread for CKEditor Plugin

Views: 56,630

Results 161 to 180 of 214
14 May 2020, 2:54 PM
#161
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Support Thread for CKEditor Plugin

I just installed the CDN version released on May 5 and that solved my problem. I like to know why something stops working personally.

Note, I did have to totally remove the old version.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 May 2020, 3:22 PM
#162
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

I've got a 1.5.4 that I can not get the CDN version to display. I can see that the javascript for it loaded but it doesn't show.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

14 May 2020, 4:41 PM
#164
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

the one in the newly release cdn version of the ckeditor mod

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

14 May 2020, 6:23 PM
#165
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

new version released that fixes it for 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!

14 May 2020, 11:42 PM
#166
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

Why does this new version of the CKEditor not have a way to change font size or color?

15 May 2020, 1:47 AM
#167
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

Well, I would normally argue that is to save you from your poor design choices like pink and green huge text...
You can adjust line 22 of admin/includes/ckeditor.php to be to get the full editor

<script src="https://cdn.ckeditor.com/4.14.0/full/ckeditor.js" title="CKEditorCDN"></script>

Your choices are laid out here https://cdn.ckeditor.com/

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

16 May 2020, 1:52 PM
#168
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

I do not color my text in a pink and green huge. I do believe in the freedom for development users to have flexibility in editors. The previous installation of ckeditor worked very well, it was easy to modify to fit the developers needs. The new installation might be better, but losing flexibility is problematic. Maybe someone will document just how the new ckeditor has been implemented in Zencart and how the new implementation of ckeditor can be modified to make it more flexible. The documentation on the ckeditor website related to the CDN version is terrible.

Regards JD

16 May 2020, 1:53 PM
#169
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Support Thread for CKEditor Plugin

barco57:

new version released that fixes it for older versions of ZC

Worked for all 3 I was having issues with =)

16 May 2020, 2:20 PM
#170
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

I have to agree about being able to edit the editor. I'm in total agreement with leaving out some options - have even integrated another editor before deleting many options. However, there are no longer paragraph alignment options in the editor and I also see no way to add them back in. I use the editor myself when making quick changes to a client's website - usually just some bolding or centering lines. I can certainly do this in code but the idea that one cannot change the alignment of a line is just....insane.

In the admin/ckeditor.php there is some info at the bottom but looking at this, I still cannot begin to figure out what to do. But I do want to put the second bit into play. The idea that the catalog stylesheet can be added to the editor is always what I belived (and did in a rendition of another editor years ago) should be how this is done.

// Other options:
// - Edit your /editors/ckeditor/config.js file to control the toolbar buttons, add additional plugins, control the UI color, etc
//
// Advanced:
// https://ckeditor.com/docs/ckeditor4/latest/features/styles.html#the-stylesheet-parser-plugin
// - set custom styles in the /editors/ckeditor/styles.js file
// - import a template-specific stylesheet from catalog-side, using config.contentsCss setting, so dialogs "look like catalog-side" in admin editor

So please someone cobble together some specific instructions! I'll be glad to do it if someone will set me on the right path.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

16 May 2020, 2:32 PM
#171
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

Delia, I hope someone can help us understand how we can modify the new ckeditor implementation to meet our needs. In the meantime I am curious what editor did you integrate and how did you integrate it into Zencart?

16 May 2020, 2:33 PM
#172
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

I did find instructions how to pull different versions - changing the lilnk

There are these options:
basic - the Basic preset
standard - the Standard preset
standard-all - the Standard preset together with all other plugins created by CKSource*
full - the Full preset
full-all - the Full preset together with all other plugins created by CKSource*

The mod is pulling the standard-all. I changed to the full-all by changing admin/includes/ckeditor.php line 22 from

<script src="https://cdn.ckeditor.com/4.14.0/standard-all/ckeditor.js" title="CKEditorCDN"></script>

to

<script src="https://cdn.ckeditor.com/4.4.5.1/full-all/ckeditor.js" title="CKEditorCDN"></script>

I don't see how to disallow pieces this way. Looks like full sets only but at least one can expand the selection if you wish.

My worry here is that it is using a different version of the editor - I know there's always concerns about the versions and security but this uses a newer version. Shouldn't it then be safer?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

16 May 2020, 2:47 PM
#173
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

Delia, Yes i found that and it does change the tool bars to include all plugins and i have some of the same concerns about just evolving into the wild wild west. I was also trying to find a way to choose a different skin. Changing the skin in the config.js does nothing.

16 May 2020, 2:48 PM
#174
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

jodean:

Delia, I hope someone can help us understand how we can modify the new ckeditor implementation to meet our needs. In the meantime I am curious what editor did you integrate and how did you integrate it into Zencart?

very long ago - a now defunct editor which I still prefer and use a really old version in a tiny cms in use on about 3 sites right now. Definitely not secure for general use.

And that's the problem. What is included in the mod right now is considered to be secure and that's the primary concern of the zen cart core team always. I've figured out how to modify this such as changing the actual set of tools pulled from the CDN but I like have having more control, especially for my clients. I don't want to have the ability to color the text in the editor so I'm happy about that change but then there are other things missing and I'm still looking at what's in each option. Unfortunately the plugin that I consider to be the handiest that uses a catalog stylesheet is not one that is included in a package. It has to be downloaded - still working on that.

All of this comes with major caveats - remembering the changes one made when upgrading, keeping up with possible insecurities (zc will upgrade when deemed prudent for the released version which does not mean you will know when your differences become a risk.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

16 May 2020, 2:51 PM
#175
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

jodean:

Delia, Yes i found that and it does change the tool bars to include all plugins and i have some of the same concerns about just evolving into the wild wild west. I was also trying to find a way to choose a different skin. Changing the skin in the config.js does nothing.

There is a online builder that creates the changes - it might give you some idea of how to make the changes in yours and then again it may not be possible to change the cdn version. The online builder will give you the entire package with plugin directories and the config. I'm playing with it to see if I can easily add the paragraphing at a minimum and the plugin for the catalog stylesheet.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

16 May 2020, 3:19 PM
#176
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

I see no difference between full and full-all by the way. I think the full-all needs further configuration in order to take advantage of possibly downloaded extra plugins. The differences between the standard-all and full are major and include way more than I want. Screenshot of the two panels: Attachment 18983

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

16 May 2020, 3:42 PM
#177
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

And also, I edited the config.js file and it simply does not appear it's being used at all. I even deleted the file after my edits failed and it appears that it made no difference.

I do see instructions for correctly adding a local config file but am unsure how to make this happen. It looks like some js needs to be added to the admin/ckeditor.php file. So here's where a response from someone who is more proficient with js/jquery than I would be gratefully appreciated.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

16 May 2020, 3:49 PM
#178
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

Definitely the config.js file is being called in admin/ckeditor.php and not heeded. So a fix please.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

16 May 2020, 9:34 PM
#179
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Support Thread for CKEditor Plugin

delia:

Definitely the config.js file is being called in admin/ckeditor.php and not heeded. So a fix please.

There are allot of things one can turn on or off depending on CKEditor build.. CKEditor 4.14 is what I'm using and not all the toolbars are on based on the config.js file in the editor folder. No config.js entry, turns them all on and one really do not need all.. CKEditor 5.19 build has very little tools installed and really not usable yet unless one builds the tools they need into it. It also requires a different admin script to work with ZC. By listing the tools one wants ..

config.toolbar = [
        { name: 'clipboard', items: [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ] },
``` turns them on and listing tools one doesn't want

// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard toolbar.
config.removeButtons = 'Subscript,Superscript,Font,Flash';

turns them off.. 
Not sure on the latest CDN version... 
If you are not sure what toolbars exist in CKEditor 4, or you wish to create your own on/off list, check out there [toolbar configurator](https://ckeditor.com/latest/samples/toolbarconfigurator/index.html#basic) tool..  Life just gets too simple sometimes!!

Dave
Always forward thinking... Lost my mind!

16 May 2020, 11:00 PM
#180
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Support Thread for CKEditor Plugin

Does anyone know how to change the skin? Changing config.skin = 'moono'; to config.skin = 'moonocolor'; in the config.js does absolutly nothing.