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

RedactorPlugins.clips = {
    
init: function()
    {
        var 
callback = $.proxy(function()
        {
            $(
'#redactor_modal').find('.redactor_clip_link').each($.proxy(function(is)
            {
                $(
s).click($.proxy(function()
                {
                    
this.insertClip($(s).next().html());
                    return 
false;

                }, 
this));
            }, 
this));

            
this.selectionSave();
            
this.bufferSet();

        }, 
this );

        
this.buttonAdd('clips''Clips', function(e)
        {
            
this.modalInit('Clips''#clipsmodal'500callback);
        });
    },
    
insertClip: function(html)
    {
        
this.selectionRestore();
        
this.insertHtml($.trim(html));
        
this.modalClose();
    }
};
?>
Онлайн: 2
Реклама