Sha256: e31b13b4a4bcfbfb3a1198ba8cbecf518006b11c4eb09e034def790ee815e8b8
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
//= require jquery.minicolors //= require_self ;(function() { scrivito.on('load', function() { scrivito.define_editor('minicolors', { can_use: function(element) { return $(element).is('[data-scrivito-field-type=string]'); }, activate: function(element) { var field = $(element); field.minicolors({ changeDelay: 500, change: function(color) { field.scrivito('save', color); } }); } }) }); }());
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scrivito_minicolors_editor-0.0.1 | app/assets/javascripts/scrivito_minicolors_editor.js |