$(document).on('xhr.loaded', function() {
    $(COMPONENT_SELECTOR).each(function(index, element) {
        return new TemplateEditor(element);
    });
});