- Issue created by @aitala
- π¨π¦Canada dadderley Vancouver
Same problem for me with same config.
In the Full HTML text format I disabled the WProofreader button and the CKEditor now loads (it did not before).
This fix worked on 4 separate sites on 2 servers with different PHP versions.aitala thanks for your info.
- π΅π±Poland salmonek
Hi,
The error is a result of WProofreader plugin incompatibility with latest CKEditor 5 version (v45).
Attaching a patch with an updated WProofreader version. The patch has to be applied ondrupal/ckeditor5_premium_features
- π§π·Brazil carolpettirossi Campinas - SP
@salmonek I'm getting the same error and I don't have the ckeditor5_premium_features module installed. I believe there should be a different fix/patch?
- π³π¬Nigeria chike Nigeria
Just add this within composer.json
patches
section and it should work,"drupal/ckeditor5_premium_features": { "WProofreader Plugin Issue": "https://www.drupal.org/files/issues/2025-06-23/3531493.patch" }
- π³π¬Nigeria chike Nigeria
ckeditor5_premium_features
is a dependency module that is installed along withckeditor5_plugin_pack
so it is already there. You can see it in the lock file if you want to check. So just add the patch to your projects'scomposer.json
and it will patch theckeditor5_premium_features
module. - π΅π±Poland salmonek
@aitala
Please try updated patch (cache rebuild required)@carolpettirossi
Exactly as @chike said premium_features is a dependency for a plugin_pack. In case of Plugin Pack WProofreader installation also PF WProofreader is being enabled and the script is there, thus the patch is for Premium Features module. - πΊπΈUnited States aitala
Ok, re-rolled patch seems to work.
Thanks,
Eric - π¨π¦Canada dadderley Vancouver
I applied the patch (3531493_9.patch). The WProofreader functionality has been restored.
Thankyou - Merge request !30Issue #3531493 by salmonek, aitala: Fix WProofreader JS Error Preventing CKEditor 5 from Loading β (Merged) created by Rajab Natshah
- π―π΄Jordan Rajab Natshah Jordan
Attached a static
ckeditor5_premium_features--2025-06-28--3531493--mr-30.patch
file, for current point of MR30.
To be used with Composer Patches. - π¨π¦Canada endless_wander
in js/build/wproofreader.js there is a console.log instance returning output whenever the CKEditor loads. Not sure if this is intentional.
console.log(Object.prototype)
- π―π΄Jordan Rajab Natshah Jordan
Me too.. It is in #3 and #9
Noticed theconsole.log(Object.prototype),Object.prototype.hasOwnProperty.call(this._userOptions,"autoStartup")
it was not in the old script.
Not sure if the build was with a dev option, orif it came from the
Also found in
https://github.com/WebSpellChecker/wproofreader/blob/master/wscbundle/ws... - π΅π±Poland salmonek
Pushed:
- build without console.log
- sources form https://github.com/WebSpellChecker/wproofreader-ckeditor5 (we use that one, not wscbundle)
- old build for compatibility with CKEditor 5 older than v41.0.0
hook_library_info_alter
implementation to change to old build file reference in case it is needed
Not sure how this log ended there. It's not in the sources and I do not remember adding it manually (however this seems most probable).
We're planning to release it tomorrow.
-
salmonek β
committed 5d37fb18 on 1.4.x authored by
rajab natshah β
Issue #3531493 by rajab natshah, salmonek, aitala, chike: Fix...
-
salmonek β
committed 5d37fb18 on 1.4.x authored by
rajab natshah β
- π΅π±Poland salmonek
Code was merged and released in version 1.5.0
In case you use some of premium plugins other than WProofreader please note that we changed our third party composer requirements to suggestions. Depending on used features some packages may need to be manually installed after update to version 1.5.0.
More info here β