Automattic / Iris

A(n awesome) Color Picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add init method

dingo-d opened this issue · comments

It would be great if there was an init method for wpColorPicker so that I can, for instance change the background image of the .wp-color-result element that gets prepended to the initialized input field.

I know I can change the background with css, but for some reason, when I do that, the selected color gets written to the element as background-color and that won't overwrite my default background inside the css. With init method I'd be able to append the background as an inline style, then remove it on change and add the color.

Ok I realized that there is a create method, that is equivalent to init. My bad. Closing...