跳到主要内容

PasteHtml

Pastes text in the HTML format into the document.

Syntax

expression.PasteHtml(htmlText);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
htmlTextRequiredstringA string value that specifies the text in the HTML format to be pasted into the document.

Returns

This method doesn't return any data.

Example

window.Asc.plugin.executeMethod ("PasteHtml", ["<p><b>Plugin methods for OLE objects</b></p><ul><li>AddOleObject</li><li>EditOleObject</li></ul>"]);