[wp-trac] [WordPress Trac] #27469: Color picker palette can't be customized

WordPress Trac noreply at wordpress.org
Wed Jul 16 20:23:53 UTC 2014


#27469: Color picker palette can't be customized
-------------------------+------------------------------
 Reporter:  GregLone     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  3.5
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |     Focuses:  javascript
-------------------------+------------------------------
Changes (by mattwiebe):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 This is actually unnecessary, what's there as-is works fine. jQuery's
 [http://api.jquery.com/data/#data-html5 .data()] support for HTML5 values
 will attempt to `JSON.parse` any `data-* ` attributes, but they need to be
 in a format that works for JSON.parse, where only double quotes are parse-
 able. This won't work:

 {{{
 <input data-palettes="['#fff', '#000']">
 }}}

 but this will:

 {{{
 <input data-palettes='["#fff", "#000"]'>
 }}}

 Anyway, apologies for getting to this slowly.

 If you have a use-case for width, please open another ticket for that. :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27469#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list