Closed umairabid closed 5 years ago
The option object is passed to the plugin as it is and there is no reason to clone it
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Apparently options passed to
grapjs.init()
are not being deep cloned and same object is being mutated which was originally passed. This is creating a weird issue, I cannot do thisMutation can be seen by logging
myOptions
beforeinit
and the result is very weird, editor without any componentsI had to fix it using
cloneDeep
of lodash likeMy version is
"grapesjs": "^0.14.43",