# EditorContext.setContents(Object object)

Start from base library version 2.7.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support

Initializes editor content, only delta takes effect when html and delta exist together

# parameter

# Object object

attribute type Default values Required Introductions
html string no Tagged HTML content
delta Object no Delta object representing content
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)