getHtml

A function that serializes the Editor State content as HTML string.

Parameters

state

EditorState | { doc: Node; }

The Editor State

Returns

string

- The serialized content

In this article

Not finding the help you need?