TypeError: Cannot read property 'document' of undefined

We developed email functionality using skuid year ago and it’s working great but recently we updated skuid version to 11.2.8 after update skuid version we got TypeError: Cannot read property ‘document’ of undefined  error at line CKEDITOR.instances.editor1.document.getBody().getHtml(); 

Could you please any one help me to resolve this issue?


Thank you for bringing this to the community. Would you mind sharing the solution you found here in case someone else encounters the same problem?