-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when saving the same content #74
Comments
I still can't replicate this issue. Are you using the editor in a conditional field or something? |
I am also getting [Object object] saved in my database with 3.0.4 when updating an entry without changing the editorJs field's content. This only happens when casting the attribute. I have the following in my model:
If I remove this the problem goes away. |
@roelofr this bug is still there for me, for you as well @johnpuddephatt? There is this commit suggested which I think should fix it? |
Fixed in v3.0.5 |
@roelofr this bug is still there for me. If I don't change the content (because I've edited other fields) and then update the resource I still get the error message indicating it tries to save |
Yes it's still there in 3.0.5 when I cast the field content with Advoor\NovaEditorJs\NovaEditorJsCast. Without the casting it does not occur. |
But can you easily cast the stored data to HTML without the cast? |
@roelofr this might be related to this issue because it's trying to save [object Object] again.
What's happening is that when I have an empty EditorJS field in Nova and type some content and save it, everything works fine.
If I then edit the resource and hit save but don't edit the content, I get:
If I change the EditorJS content and save it (even if it's just adding a dot), then it does actually works.
The text was updated successfully, but these errors were encountered: