Skip to content
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

[question/suggestion] How to trigger refresh editor's content rendering #44

Open
alessmar opened this issue Oct 27, 2022 · 2 comments
Open

Comments

@alessmar
Copy link

Hi,
first of all thank you for this awesome plugin, it works like a charm with ver 4.4.5 (the latest at this time).

I was wondering if there's a way to trigger the rendering of new content. I have a lifecycle hook that needs to update the text inserted, I can see from the logs that the content of this specific field is properly updated (through event.params.data.myfield = updatedHtml; in the lifecycle hook) but the content in the editor is not updated. I need to go back and click on edit a second time.

Is there a way to automatically update the editor's content ?

@alessmar alessmar changed the title [question/suggestion] How to trigger render [question/suggestion] How to trigger refresh editor's content rendering Oct 27, 2022
@alessmar
Copy link
Author

I forgot to specify the the lifecycle hook is triggered on beforeCreate and beforeUpdate events.

@SalahAdDin
Copy link

I forgot to specify that the lifecycle hook is triggered on beforeCreate and beforeUpdate events.

I didn't understand your question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants