As i upgrade my drupal core to 10.5, the OpenAI CKeditor Plugin stops working and generated following errors in the browser console.

TypeError: Cannot read properties of undefined (reading 'check')
at new s (openai.js?sygtqs:1:1227)
at l._createFormView (openai.js?sygtqs:1:3934)
at new l (openai.js?sygtqs:1:3791)
at g.init (openai.js?sygtqs:1:11216)

Comments

shubhamgoel created an issue. See original summary.

shubhamgoel’s picture

StatusFileSize
new69.5 KB

Replacing the following
t.icons
with
(t.icons && t.icons.check)
fixes the issue.

shubhamgoel’s picture

Status: Active » Needs review
vivek_lnwebworks’s picture

@shubhamgoel Works for me.
Thank you

msankhala’s picture

I can confirm patch #2 works for me. Tested on latest 'drupal/openai:^1.0@beta'.

msankhala’s picture

Assigned: shubhamgoel » Unassigned
StatusFileSize
new72.28 KB

The #2 only fixes the js/build/openai.js file. Here is the patch with changes to the actual files and then the final build file.