Error using: document.body


#1

Hi

We are trying to use Spreadsheet in Salesforce

But Salesforce has some restrictions (Lightning Locker Service) on how 3rd party libraries can interact with the DOM.

It seems the Spreadsheet library uses “document.body” directly to modify the DOM, but this is not allowed.

Are there any previous versions that didn’t use “document.body” or are there any plans to change the design of Spreadsheets to not use “document.body”?

I am keen to understand if there is any way forward?

NOTE: this is a question I asked on the Salesforce forum:

https://salesforce.stackexchange.com/questions/376724/unable-to-load-dhtmlx-spreadsheet-js-into-lwc


#2

Unfortunately currently dhx.Spreadsheet has no integration with the salesForce.
We’re also not planning to extend it in the near future.
I’ll inform you here, if such plans may take place in the future.