-
Notifications
You must be signed in to change notification settings - Fork 152
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
Allow to update editor content #527
Comments
@StephanHoyer Thanks for this question. There is one place that something like this happens already in mobiledoc-kit, though: in undo/redo when we restore a previous state (called a The Can you describe your use case? Why do you need to reset the contents of the editor? Perhaps there's another option where you can modify the existing content of the editor instead of resetting it. |
Thanks for the answer. We need this because we have our own undo/redo-stack. In order to set to a former version we need to reset the post. |
I just need to update the editor content but preserve the selection state when possible
This is my current solution which works
@disordinary proposed me to use post insert and html parser to do this. So I did
This works partly, setting selection crashes.
Would be great to have one method that does this, like
I just created a non-working fiddle that tries to demonstrate the behaviour.
The text was updated successfully, but these errors were encountered: