I am using CKEditor 5 in my project and automating the application with Selenium IDE.
To facilitate automated text input, I have created a global CKEditor instance:
window.theEditor = editor;
In the browser console, I can successfully set the editor content using:
window.theEditor.setData('hi');
This correctly updates the CKEditor content.
However, when I attempt to execute the same JavaScript command via Selenium IDE using execute script, it fails with an error indicating that theEditor is not defined.
This happens even though the instance is explicitly attached to window.