Inserting HTML into a document

Is there an API that allows inserting HTML into the document I’m opening with ONLYOFFICE Document Editor?

Hello @sxiawna

Plugin method PasteHtml allows you to paste the text in HTML format into the document. This method is also used in ready-to-go plugin Get and paste html:


可以实现点击按钮将上面的html内容直接添加至onlyoffice编辑器中吗

Try copy-pasting it into the editor.