WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: CodeALot on July 01, 2024, 01:17:51 PM

Title: CKEditor not secure?
Post by: CodeALot on July 01, 2024, 01:17:51 PM
PHP-Version: 8.2.20
WebsiteBaker-Version: 2.13.5 -r220
Last cumulative update-revision: R223 - (16-01-2024 19:02:02)

"This CKEditor 4.22.1 version is not secure. Consider upgrading to the latest one, 4.24.0-lts."

Is there a solution for this?
Title: Re: CKEditor not secure?
Post by: sternchen8875 on July 01, 2024, 01:50:39 PM
the ckeditor make's a version check, to get some infos from the ckeditor-group, to display it in the ckeditor-info-windows. if he get no answer from there, it display this error message (in all cms, not only wb)

you can use the fixed version from here -> https://addon.WebsiteBaker.org/pages/en/browse-add-ons.php?download=08A769F

or add this line in your wb_ckconfig.js (nearly the line 140 ff)

Code: [Select]
config.versionCheck = false;
Title: Re: CKEditor not secure?
Post by: CodeALot on July 01, 2024, 02:20:30 PM

or add this line in your wb_ckconfig.js (nearly the line 140 ff)

Code: [Select]
config.versionCheck = false;

That did the trick, thanks :-)
Can we have that by default? I remember CKEditor had this same problem some time ago...
Title: Re: CKEditor not secure?
Post by: sternchen8875 on July 01, 2024, 02:44:09 PM
it is default now in the linked download (my last posting)
and part of the next WB-Versions
Title: Re: CKEditor not secure?
Post by: sternchen8875 on July 02, 2024, 11:16:32 AM
for all those who are wondering: what error message...
Here is a picture from the editor

(https://i.gyazo.com/cd73842085a6dd5270349bfe21b7a4f1.png)

here the official docs

https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-versionCheck
Title: Re: CKEditor not secure?
Post by: Matthias on October 08, 2024, 09:14:09 PM
Hello, I just got the mentioned error message that ckeditor is not secure.

I run PHP-Version: 8.0.30
WebsiteBaker-Version: 2.13.5 -r220
Last cumulative update-revision: R223

and I installed the latest ckeditor from the wb Download area version 4.22.1.1.
The wb_ckconfig.js contains the mentioned line with the parameter 'false'. Are there any news on the topic or do I have to set another parameter?

Thanks for your help!

Matthias
Title: Re: CKEditor not secure?
Post by: sternchen8875 on October 09, 2024, 02:17:26 AM
two possible problems....

#1 - clear the browser cache! -  (my favorite) - maybe, one pass is not enough

#2 - check the used frontend templates for another file "wb_ckconfig.js". if you use one or more of them, it needs the setting
Code: [Select]
config.versionCheck = false;in every used wb_ckconfig.js

for example also in /templates/DefaultTemplate/js/wb_ckconfig.js


Sometimes it helps, to add this code additionally in /modules/ckeditor/include.php / ~ Line 280
Code: [Select]
$ckeditor->config['versionCheck'] = false;
Here some other threads (in german)
https://forum.WebsiteBaker.org/index.php/topic,32337.msg226456.html#msg226456
https://forum.WebsiteBaker.org/index.php/topic,32285.0.html
Title: Re: CKEditor not secure?
Post by: Matthias on October 09, 2024, 10:20:11 AM
Good Morning, #1 did the job. I am sorry to make you work with my question and not have checked the easiest things before :-(.
Thank you very much for your help!
best regards

Matthias
Title: Re: CKEditor not secure?
Post by: sternchen8875 on October 09, 2024, 11:51:22 AM
 (Y)