"Cannot read property 'body' of null" error (TinyMCE)

If you're using TinyMCE or TinyMCE RTE with ContentBlocks and encounter an infinite save loop, it's possible to receive a JavaScript TypeError with the message: "Cannot read property body of null"

To avoid that error, disable the contentblocks.remove_content_dom system setting.

This problem occurs when a rich text editor is initialized on the content field of a resource, while ContentBlocks is set to remove that field from the page. Removing the field from the page is necessary to avoid another issue when using Redactor.

Still need help? Send us an email Send us an email