How to update class when content is stored inside vuex #678
Unanswered
zimmicz
asked this question in
Questions & Help
Replies: 2 comments 2 replies
-
@zimmicz Did you find a solution? I have the same problem/need |
Beta Was this translation helpful? Give feedback.
2 replies
-
I faced a similar problem. I'd suggest to use the editor in the local property of the component and propagate it's content structure into vuex when editor changes (onChange) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Having the custom mark (see below) rendered as vue component I would need to update its class on click. That's easy to do on its own. However, the editor content is stored inside vuex state (with strict mode on), and updating the class leads to
change outside mutation
error.Is there other way to do that? I thought of taking the content out of vuex and syncing it once in a while, but I would like to know other options (if any) as well.
Beta Was this translation helpful? Give feedback.
All reactions