Page tree
Skip to end of metadata
Go to start of metadata

Retrieve the HTML contents of an instance's <body> element  with editor.content.get().

Image Uploads

Local images are not guaranteed to be uploaded when this API is used. If they have not been uploaded, image data will be returned in base64.

For more information, see the Handling Local Images and Handling Asynchronous Image Uploads articles.


Example

editor.content.get()
// Retrieve the HTML content of the instance as a string
var content = editor.content.get();

Returns

BODY HTMLString

The HTML content of the instance's <body> element as a string.

  • No labels