Вход Регистрация
Файл: concrete5.7.5.6/concrete/js/build/vendor/redactor/fontsize.js
Строк: 54
<?php
if (!RedactorPlugins) var RedactorPlugins = {};

(function($)
{
    
RedactorPlugins.fontsize = function()
    {
        return {
            
init: function()
            {
                var 
fonts = [10111214161820242830];
                var 
that this;
                var 
dropdown = {};

                $.
each(fonts, function(is)
                {
                    
dropdown['s' i] = { title'px'func: function() { that.fontsize.set(s); } };
                });
                
/* concrete5 */
                
dropdown.remove = { titlethis.lang.get('remove_font_size'), functhat.fontsize.reset };
                var 
button this.button.add('fontsize'this.lang.get('change_font_size'));
                
this.button.setAwesome('fontsize''fa fa-text-height');
                
/* end concrete5 */
                
this.button.addDropdown(buttondropdown);
            },
            
set: function(size)
            {
                
this.inline.format('span''style''font-size: ' size 'px;');
            },
            
reset: function()
            {
                
this.inline.removeStyleRule('font-size');
            }
        };
    };
})(
jQuery);
?>
Онлайн: 0
Реклама