HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/boofola_net_hosting/javascript/redactor_plugins.js
if (typeof RedactorPlugins === 'undefined') var RedactorPlugins = {};

RedactorPlugins.clips = {

    init: function()
    {
        var clip_content_id = $($(this)[0]['$el'][0]).attr('data-clips-id');
        var callback = $.proxy(function()
        {
            $('#redactor_modal .redactor_clip_link').each($.proxy(function(i,s)
            {
                $(s).click($.proxy(function()
                {
                    this.insertClip($(s).next().html());

                    return false;

                }, this));

            }, this));


            this.saveSelection();
            this.setBuffer();

        }, this);

        if ($('#'+clip_content_id).length > 0 ) {
            this.addBtn('clips', 'Click to view available tags', function(obj)
            {
                obj.modalInit('Available Tags', '#'+clip_content_id, 500, callback);
            });
        }

    },
    insertClip: function(html)
    {
        this.restoreSelection();
        this.execCommand('inserthtml', html);
        this.modalClose();
    }

};

RedactorPlugins.rtl = {
    init: function()
    {
        var dropdown = {};
        dropdown.ltr = { title: 'Left to Right', exec: 'ltr' }
        dropdown.rtl = { title: 'Right to Left', exec: 'rtl' }
        this.addBtn('rtl', 'RTL-LTR', function() {}, dropdown);
    }
};