Documentation / Settings

Content

Type: String

Default: false

Redactor takes content from the specified element in a typical launch, for example, this way:

// element
<textarea id="entry">
    <p>My content</p>
</textarea>

// call
Redactor('#entry');

You can specify the content as a setting, like this:

// element
<textarea id="entry"></textarea>

// call
Redactor('#entry', {
    content: '<p>My content</p>'
});

See a live example of how Redactor starts with content in the setting.