if ( !result.errors.length ) {
$('#macro-ui').modal('hide');
editor.focus(); //Return cursor to editor after macro run
return false;
}
-