I’m currently working with the RoosterJS rich text editor in my project, and I need to set the HTML content programmatically. My goal is to replace the entire content of the editor with a new HTML string.
I’ve gone through the RoosterJS documentation and explored the source code. I found a method called setContent in the source code on GitHub, which seems to do exactly what I need. However, it appears that this method is not included in the package( roosterjs: 9.9.1) I’m using.
Is there an alternative method or recommended approach to set or replace the entire HTML content of the RoosterJS editor programmatically? If setContent is not part of the package, how can I achieve similar functionality?