You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A copy of the closed for any weird reason issue #179. The problem is still here.
The following error occurs after image uploading: Saving failed due to the Error TypeError: Cannot assign to read only property 'caption' of object '#<Object>'
As soon as any image added to the editor, the whole saving process is broken, no changed to other blocks can be saved due to the error.
The error comes from here:
{
key: "save",
value: function() {
var e = this.ui.nodes.caption;
return this._data.caption = e.innerHTML, <--------- error
this.data
}
}
An ugly and absolutely not recommended solution that I used for now to make the editor work again - I changed the caption assignment in bundle. js. This way saving of the caption works as expected as well as all other data.
{
key: "save",
value: function() {
var e = this.ui.nodes.caption;
this._data = {...this._data, caption: e.innerHTML};
return this._data, this.data
}
}
Hopefully, I'll find another solution later as the the author of this tool seemed abandoned the project and is not going to fix issues.
The text was updated successfully, but these errors were encountered:
A copy of the closed for any weird reason issue #179. The problem is still here.
The following error occurs after image uploading:
Saving failed due to the Error TypeError: Cannot assign to read only property 'caption' of object '#<Object>'
As soon as any image added to the editor, the whole saving process is broken, no changed to other blocks can be saved due to the error.
The error comes from here:
The problem may come from here :
But setting
readOnly: false
in the EditorJS config or the tool's config doesn't change anything.Also, I see that the caption node is rendered correctly in the DOM:
An ugly and absolutely not recommended solution that I used for now to make the editor work again - I changed the caption assignment in bundle. js. This way saving of the caption works as expected as well as all other data.
Hopefully, I'll find another solution later as the the author of this tool seemed abandoned the project and is not going to fix issues.
The text was updated successfully, but these errors were encountered: