I am using Pickr - a color-picker - by Simonwep, which fires an event once a color was selected. Based on this event I assign the color to a previously selected text element