• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Render (activate) XenForo redactor

Hello guys, i'm noob in JS and don't know how to render redactor in js.

I try load page (page contains redactor) via AJAX, but redactor don't display.
I use such construction:

var $destinationContainer = $($input.data('destination'));
        var handleAjaxResponse = function (ajaxData, textStatus){
                if (ajaxData.error) {
                    XenForo.hasResponseError(ajaxData, textStatus);
                else {                   
                    new XenForo.ExtLoader(ajaxData);
        $input.click(function() {
            if ($destinationContainer.html().length === 0)
                XenForo.ajax($(this).data('loadurl'), {}, handleAjaxResponse);
Do Somebody knows how to display redactor?