Helper: admin/util/redactor

« All helpers

Call this to load the required libraries for the Redactor editor. Note: For a full editor with the Elefant integrations, see admin/util/wysiwyg instead.

In PHP code, call it like this:

$this->run ('admin/util/redactor');

In a view template, call it like this:

{! admin/util/redactor !}

From here, you can initialize Redactor like this:

$('#my-textarea').redactor ({
    // editor options
});