HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srvntsweb01 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: admntserv (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/novotecs.com/wp-content/plugins/case-theme-core/assets/js/emojionearea-control.js
(function($){
    "user strict";

    $( window ).on( 'elementor:init', function() {
        var emojioneareaItemView = elementor.modules.controls.BaseData.extend({
            onReady: function () {
                var self = this,
                    options = _.extend({
                        events: {
                            change: () => self.saveValue(),
                            emojibtn_click: () => self.saveValue(),
                            keyup: () => self.saveValue()
                        },
                        pickerPosition: 'bottom',
                        filtersPosition: 'top',
                        searchPosition: 'bottom',
                        saveEmojisAs: 'unicode',
                        inline: false,
                    }, this.model.get('emojionearea_options'));

                this.ui.textarea.emojioneArea(options);
            },

            saveValue: function () {
                this.setValue(this.ui.textarea[0].emojioneArea.getText());
            },

            onBeforeDestroy: function () {
                this.saveValue();
                this.ui.textarea[0].emojioneArea.off();
            }
        });

        elementor.addControlView('emojionearea', emojioneareaItemView);
    } );
}(jQuery));