Super simple. Could be easily expanded, see https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand#Commands for a list of possible 'data-action'-s