use App\Models\User;
use App\SubForms\Link\Base;
use Cubist\Util\Files\Files;
+use Cubist\Util\Graphics\Color;
use Cubist\Util\Gzip;
use Cubist\Util\Str;
use Cubist\Util\WebVideo;
self::_fixWebVideoServices($links);
self::_fixMultimedia($links);
self::_fixCloseButton($links);
+ self::_fixColors($links);
+ }
+
+ protected static function _fixColors(&$links)
+ {
+ foreach ($links as $k => $link) {
+ if ($link['type'] == Link::COLOR) {
+ $links[$k]['to'] = Color::colorToCSS($link['to']);
+ }
+ }
}
protected static function _fixTypes(&$links)
});
+
$(document).on('change', "#linkeditor-panel-form input,#linkeditor-panel-form select,#linkeditor-panel-form textarea", function () {
if ($this._maskChangeEvent) {
return;
},
initSpectrum: function () {
- $("#linkeditor-panel-form .spectrum:not(.init)").each(function () {
+ $("#linkeditor-panel-form .colorpicker:not(.init)").each(function () {
var t = $(this);
$(this).spectrum({
preferredFormat: 'hex3',