Color Picker (iris) in widget – refresh when edited in Customizer

I don’t know where your iframe is getting it’s color information from, but you probably need to write the selected color from the color picker to that field.

This is an example including throttle. update_color is a function that deals with the new color. You can put there some code that puts the picked color to the correct place in your situation.

            change: $.proxy( _.throttle(function(event, ui) {
                    event.preventDefault();
                    var color = ui.color.toString();
                    update_color(event,ui, color);
            }, 200), this),

Leave a Comment