Skip to main content

SetParagraphRangeHtml

Replaces a part of the specified paragraph with the content parsed from the given HTML string. Slide number and date fields and equations of the paragraph are kept as they are.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Syntax​

expression.SetParagraphRangeHtml(html, paraId, from, to);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
htmlRequiredstringThe HTML string to parse and apply.
paraIdRequiredstringThe paragraph ID.
fromRequirednumberStart offset inside the paragraph.
toRequirednumberEnd offset inside the paragraph.

Returns​

boolean