WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => Modules => Topic started by: CodeALot on March 22, 2021, 04:25:51 PM

Title: Could comeone please get a broom?
Post by: CodeALot on March 22, 2021, 04:25:51 PM
It would make life a lot easier if the CKEDITOR would not come with 182 (OK, maybe a little less :-) )  instances of the same config-files, style-declarations and CSS-files in different folders. Every time I need to change something in the taskbar or style-definitions, it's a frustrating task. Can't this be cleaned up in the distribution files?
Title: Re: Could comeone please get a broom?
Post by: dbs on March 22, 2021, 05:03:43 PM
Hi, idk really what you mean.
You have a copy of the folder wb_config in your template?
This helps not?
Title: Re: Could comeone please get a broom?
Post by: hgs on March 23, 2021, 08:53:42 AM
Actually, there is only one place that is located in the CKEditor module, namely in the subfolder
 /wb_config
I only use this option.

DBS has already mentioned a second possibility.
To customize it for the template, take a copy of this folder from the module and copy it to the template subfolder.

Or we have completely misunderstood you.
Title: Re: Could comeone please get a broom?
Post by: CodeALot on March 25, 2021, 11:45:12 PM
No you are both right. I made things complicated for myself :)

Re: copies in every template dir: I never do that. I always use one central place for all my css and js.
Because I want to be able to access those from the AddOnFileEditor, I use the default template for this. Every other template gets its css and js files from there.

The broom I mentioned: the CKEditor module comes with duplicates of some of the files and consists of a lot of directories. Some of those files and directories are never used in WB. So why don't we take those out to prevent confusion?
Title: Re: Could comeone please get a broom?
Post by: dbs on March 29, 2021, 12:21:57 PM
The folder wb_config you can also use as a central if you put this folder into /templates.
If no folder wb_config is in the used template WB will use the folder wb_config in /templates.
If no folder is in used template and no folder in /templates WB use the one in /ckeditor.

We have no ckeditor special man to remove unused things.  :)
There are so many other tasks.