Redactor / Documentation / API

Code

set #

Places specified code inside Redactor.

this.code.set('<p>My html code</p>');

Use options to prevent the change callback:

this.code.set('<p>My html code</p>', { start: true });

get #

Returns code from Redactor.

'code.get' is the only proper way to get HTML code from Redactor.

var html = this.code.get();