On Drupal 10.3-beta1, I've this error on a node edit page with a CKEditor and OpenAI enabled:
TypeError: e.Model is not a constructor
init http://drupal.xxx.loc/modules/contrib/openai/modules/openai_ckeditor/js/build/openai.js?sei2i8:1
create http://drupal.xxx.loc/core/assets/vendor/ckeditor5/ckeditor5-dll/ckeditor5-dll.js?v=41.3.1:5
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | openai-drupal_10_3-3452184-8.patch | 72.23 KB | liam morland |
| #3 | Screenshot 2024-06-24 at 2.23.42 PM.png | 41.54 KB | johnpicozzi |
Issue fork openai-3452184
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
lussolucaComment #3
johnpicozziI can confirm I also have this error with OpenAI CKEditor integration Module enabled. As soon as the module is disabled the CKEditor displays as expected. Prior to disabling the module the body filed on my content type would not display. See below screenshot
Comment #4
johnpicozziUpdating the title of this issue and moving priority to Major as it makes the body field unusable.
Comment #7
liam morlandThe merge request has a fix, though this may cause problems with backward compatibility. This is a similar issue to #3452570: CKEditor 5 41.3.1 (Drupal 10.3 beta) breaking change; we may need to do something like the fix in this issue to resolve the backward compatibility problem.
Comment #8
liam morlandPatch with current state of merge request.
Comment #9
johnpicozzi@Liam Morland Looks like the MR doesn't pass all it's tests. I'll be reviewing the patch to confirm it resolves the issue shortly.
Comment #10
liam morlandThe only test warnings are coding standards and those also have warnings on the development branch.
Comment #11
johnpicozzi@Liam Morland I'm seeing that now. I have tested this locally and it works for me. RTBC +1
Comment #12
rajab natshahThe patch in #8 is working
Thank you, Liam
Comment #13
johnpicozziComment #16
scott_euser commentedThanks everyone! Booted up a fresh 10.3 to test with this branch and went through the process of configuring through to using some tools like summarise, etc within the editor and all working great. Thank you. Expect a new release shortly
Comment #17
scott_euser commentedKevin make the release here: https://www.drupal.org/project/openai/releases/1.0.0-beta6