HEX
Server: Apache
System: Linux webm020.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: bohousj (181416)
PHP: 8.4.22
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/b/o/h/bohousj/www/wp-content/plugins/jeg-elementor-kit/lib/jeg-element/assets/js/shortcode.js
/*jslint browser:true */
(function ($, api) {
    "use strict";

    tinymce.PluginManager.add('jeg-shortcode', function (editor, url) {
        editor.addButton('jeg-shortcode-generator', {
            title: 'Jeg Shortcode Generator',
            image: url + '/shortcode/generator.png',
            cmd: 'jeg_shortcode_list'
        });

        editor.addCommand('jeg_shortcode_list', function () {
            if (!api.shortcodepopup.has('jeg')) {
                api.shortcodepopup.add('jeg', new api.ShortCodeListPopup(editor));
            } else {
                var element = api.shortcodepopup.instance('jeg');
                element.showPopup();
            }
        });
    });

})(jQuery, wp.customize);