cclaerhout
Well-known member
Code:
if (ajaxData.templateHtml)
{
$smilies = $('<div class="redactor_smilies" />').html(ajaxData.templateHtml);
$smilies.hide();
$smilies.on('click', '.Smilie', function(e) {
e.preventDefault();
var $smilie = $(this),
html = $.trim($smilie.html());
ed.execCommand('inserthtml', html);
ed.focus();
});
ed.$box.append($smilies);
$smilies.xfActivate();
$smilies.slideToggle();
}