Вход Регистрация
Файл: protected/extensions/widgets/imperavi/assets/plugins/fontfamily/fontfamily.js
Строк: 41
<?php
if (!RedactorPlugins) var RedactorPlugins = {};

RedactorPlugins.fontfamily = {
    
init: function ()
    {
        var 
fonts = [ 'Arial''Helvetica''Georgia''Times New Roman''Monospace' ];
        var 
that this;
        var 
dropdown = {};

        $.
each(fonts, function(is)
        {
            
dropdown['s' i] = { titlescallback: function() { that.setFontfamily(s); }};
        });

        
dropdown['remove'] = { title'Remove font'callback: function() { that.resetFontfamily(); }};

        
this.buttonAdd('fontfamily''Change font family'falsedropdown);
    },
    
setFontfamily: function (value)
    {
        
this.inlineSetStyle('font-family'value);
    },
    
resetFontfamily: function()
    {
        
this.inlineRemoveStyle('font-family');
    }
};
?>
Онлайн: 1
Реклама