I used the SetEditorData action in the CKEditor onReady event, and it works fine for showing previous data in CKEditor. However, in another scenario, when I select an option from a dropdown field to fetch content for CKEditor, the content is not being set . To address this, I used the SetEditorData action in the dropdown onChange event, but I get the following error. I also tried removing the SetEditorData action in the onReady event of CKEditor, but I still encounter the same error.
What should I do in this case?
Hi P.K ,Please refer the below link,https://www.outsystems.com/forums/discussion/78909/cannot-read-property-of-undefined-reading-list/Thanks,Sahana
SetEditorData should not be called directly in both OnReady and OnChange without checks. This can overlap or target an undefined CKEditor instance.
Also, avoid refreshing the container or widget holding CKEditor — it resets the instance.