+ const selectButton = el('label', {
+ class: 'editor-color-select-option',
+ for: `color-select-${id}`,
+ 'data-color': '',
+ title: 'Custom color',
+ }, []);
+ selectButton.innerHTML = selectIcon;
+ colorOptions.push(selectButton);
+
+ const input = el('input', {type: 'color', hidden: 'true', id: `color-select-${id}`}) as HTMLInputElement;
+ colorOptions.push(input);
+ input.addEventListener('change', e => {
+ if (input.value) {
+ this.storeCustomColorChoice(input.value);
+ this.setColor(input.value);
+ this.rebuildDOM();
+ }
+ });
+