in src/studies/apg/toolbar/js/FormatToolbar.js [236:272]
FormatToolbar.prototype.activateItem = function (toolbarItem) {
switch (toolbarItem.buttonAction) {
case 'bold':
this.toggleBold(toolbarItem);
break;
case 'underline':
this.toggleUnderline(toolbarItem);
break;
case 'italic':
this.toggleItalic(toolbarItem);
break;
case 'align':
this.setAlignment(toolbarItem);
break;
case 'copy':
this.copyTextContent(toolbarItem);
break;
case 'cut':
this.cutTextContent(toolbarItem);
break;
case 'paste':
this.pasteTextContent(toolbarItem);
break;
case 'font-family':
this.setFontFamily(toolbarItem.value);
break;
case 'nightmode':
this.toggleNightMode(toolbarItem);
break;
case 'link':
this.redirectLink(toolbarItem);
break;
default:
break;
}
};