Replies: 2 comments
-
Why not just re-init editorjs? Updating messages will require re-rendering of the UI |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your quick feedback! |
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
-
We have an internationalized application. Users can change languages with a simple drawer and the UI including the data will update without page reloads.
Angular translations and editor.js internationalization obviously isn't the same and editor.js instances won't be re-initialized. So they still contain the messages from the previous language. Because of that, I'm looking for a way to change the messages of an already running editor.js instance.
We tried to save the current editor's state and re-initialize editor.js but couldn't get it working reliably. This is why it would be great to have something like
editorInstance.setMessages(...)
.I couldn't find anything similar in the github issues, maybe also just failed to search properly. Is this complex to implement or any other workarounds available?
Beta Was this translation helpful? Give feedback.
All reactions