I am working on converting a custom app that currently is using Redactor and jQuery over to CkEditor, v5. It is generally working but we have a feature that generates some HTML and then inserts it into the editor. For the old editor this worked fine, but for CkEditor I think I need to insert the HTML inside a new HTML snippet. I can wrap the html in a div with class=raw-html-embed, which is what the snippet plugin generates normally, but CkEditor doesn't recognize it as a new snippet, it is just inserted as text.
Is there an API call or other process that would allow be to trigger creation of a new HTML snippet?
question from:https://stackoverflow.com/questions/65834631/how-to-dynamically-create-html-snippet-in-ckeditor5-using-javascript-jquery