Not all options for Slider BB-Code working

nocte

Member
Reactions
5
Seems like a bug to me:

The options allow_touch and interval can be set in admin cp (style properties), but not in the editor. Took a look at SV\AdvancedBbCodesPack\BbCode\Tag\Slider and found:

allow_touch is not taken care of in parseUniqueTagOptions().

interval is handled here:

PHP:
           if (\preg_match('/^\d+ms$/', $option))
            {
                $interval = (int)\str_replace('ms', '', $option);
                if (
                    ($interval >= $constraints['interval_min'])
                    && ($interval <= $constraints['interval_max'])
                )
                {
                    $options['interval'] = $interval;
                }
            }
.. but both, 1000ms and 1000, as value don't give an 1 second interval.
 
Should be fixed for the next version, and added editor support for the missing slider options
 

Users who are viewing this thread

Back
Top