setHtml

Sets the HTML to the EditorView.

Parameters

view EditorView<any>

The view object of the Editor.

html string

The HTML content.

command? EditorToolsSettings.Command

An optional parameter. Defines the type of the command that will be set to the setHtml metadata of the transaction. Defaults to SetContent.

parseOptions? ParseOptions<any>

An optional parameter. Defines the options that will be used for parsing the HTML. Defaults to { preserveWhitespace: 'full' }.

 /