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

RedactorPlugins.underline = function() {
    return {
        
init: function()
        {
            
this.button.addAfter('italic''underline'this.lang.get('underline'));
            
/* concrete5 */
            
$btn this.button.get('underline');
            
this.button.addCallback($btnthis.underline.format);
            
this.button.setAwesome('underline''fa fa-underline');
            
/* end concrete5 */
        
},
        
format: function(s)
        {
            var 
$button this.button.get('underline');
            if (
$button.hasClass('redactor-act')) {
                
this.inline.removeFormat('u');
            } else {
                
this.inline.format('u');
            }
        }
    }
}
?>
Онлайн: 2
Реклама