These docs are for v0.1.0. Click to read the latest docs for v1.0.0.

Front.insertHTML(HTML_string)

Allows you to insert HTML in the message composer where the user cursor is.

HTML_string: string

The HTML to add to the current draft.

Front.insertHTML('<div>Automatically inserted HTML</div>');

❗️

Limitation

Inserting HTML is currently supported only when composing a reply (not in the new message composer)