Hi,Getting this error in CK editor ODC - Cannot set properties of null (setting 'innerHTML') Thanks,Prasath P
Hi Prashant,
This error usually occurs when we try to set the properties of element that doesn't exist or hasn't been rendered yet in the DOM. Try using onReady event of screen/block to set properties of the CKEditor.
hope it helps,
Hi, I discovered the issue: during rendering, my functionality calls the innerHTML of a container. However, for some reason, I hide that container and display a loader using an if condition. now i use if condition to end now it workingThanks,Prasath P
Hi @Prasath P ,
This might help, kindly refer the link below:
https://www.outsystems.com/forums/discussion/84253/cannot-set-properties-of-null-setting-innerhtml-facing-this-error/
Thanks,
Dhanasingh Dennison.
Hello @Prasath P
As Jozy Sohail said it happened when you are using the element that is currently not available in dom so debug in the console and find which element giving this error and use the element after the availability of that element in DOM, if possible can you please share the OML of the code so I will review the solve the issue
Hi @Prabhu K
typically indicates that your JavaScript code is trying to manipulate an element in the DOM (Document Object Model) that doesn't exist or hasn't been rendered yet when the code is executed. This is commonly seen in CKEditor when trying to access an element before it's available in the DOM.
Rajat,