Closed allenhwkim closed 5 months ago
Hi, thanks for the report.
It has been a while since I worked on this but if I remember correctly the plugin works under the assumption that editor
is globaly defined variable that holds the result of grapesjs.init()
.
For some reason the codesandbox is not loading for me, and I have no idea why it would work with the older version but not with the new one.
Hello, sorry for the wait my full time job keeps me occupied.
Looking at it in detail the problem is that several helper functions expect the editor
to be globally available. In the example you provided the problem can be fixed by doing window.editor = editor;
. This approach was fine when I original developed this plugin but I am no longer so sure of it.
I have created new version v1.2.0 that should address this issue.
Please let me know if it works as expected.
Closing due to no activity.
When I drag and drop a table to editor, I see an error
https://codesandbox.io/p/sandbox/table-forked-94xdwf?file=%2Fsrc%2Findex.js%3A14%2C1
However, it seems working with the old version, 0.0.118