<commit_before>CKEDITOR.plugins.add('addAudio',
{
    init: function(editor)
    {
        //plugin code goes here
        var pluginName = 'addAudio';
        var groupId = editor.config.groupID.group_id;
        var nodeId = editor.config.nodeID.node_id;
        var url = "/" + groupId + "/audio";
        // var textAreaId = "textarea-"+nodeId;
        var textAreaId = editor.config.textarea_id;
        CKEDITOR.dialog.add(pluginName, this.path + 'plugin.js');
        editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));

        editor.addCommand("addAudio", {
            exec: function() {

                    $.ajax({
                        type: "GET",
                        url: url,
                        datatype: "html",
                        data:{

                        },
                        success: function(data) {
                            $("#group_imgs_on_modal").html(data);
                            $('#group_imgs_on_modal').foundation('reveal', 'open');
                            $(".audio-caption").click(function(event){
                                alert("hello");
                                var audioURL = $(this).children('audio').attr("data-audio-src");
                                // var locationURL = 'http://' + location.host;
                                var locationURL = window.location.origin
                                var completeURL = audioURL
                                CKEDITOR.instances[textAreaId].insertHtml('<audio controls loop src=' + completeURL +  '>' + '</audio>');
                                $('#group_imgs_on_modal').foundation('reveal', 'close');
                        

                          });

                        }
                    });
            }
        });

        editor.ui.addButton('addAudio',
            {
                label: 'Record Audio or add audio file  from this Group',
                command: pluginName,
                icon: this.path + 'images/fi-music.svg'
            });

    }
});
<commit_msg>alert messages removed<commit_after>CKEDITOR.plugins.add('addAudio',
{
    init: function(editor)
    {
        //plugin code goes here
        var pluginName = 'addAudio';
        var groupId = editor.config.groupID.group_id;
        var nodeId = editor.config.nodeID.node_id;
        var url = "/" + groupId + "/audio";
        // var textAreaId = "textarea-"+nodeId;
        var textAreaId = editor.config.textarea_id;
        CKEDITOR.dialog.add(pluginName, this.path + 'plugin.js');
        editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));

        editor.addCommand("addAudio", {
            exec: function() {

                    $.ajax({
                        type: "GET",
                        url: url,
                        datatype: "html",
                        data:{

                        },
                        success: function(data) {
                            $("#group_imgs_on_modal").html(data);
                            $('#group_imgs_on_modal').foundation('reveal', 'open');
                            $(".audio-caption").click(function(event){
                                var audioURL = $(this).children('audio').attr("data-audio-src");
                                // var locationURL = 'http://' + location.host;
                                var locationURL = window.location.origin
                                var completeURL = audioURL
                                CKEDITOR.instances[textAreaId].insertHtml('<audio controls loop src=' + completeURL +  '>' + '</audio>');
                                $('#group_imgs_on_modal').foundation('reveal', 'close');
                        

                          });

                        }
                    });
            }
        });

        editor.ui.addButton('addAudio',
            {
                label: 'Record Audio or add audio file  from this Group',
                command: pluginName,
                icon: this.path + 'images/fi-music.svg'
            });

    }
});

{'fraction_non_alphanumeric': 0.12222493291046596, 'fraction_numerical': 0.0, 'mean_word_length': 1.1808510638297873, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4941292', 'n_tokens_mistral': 1043, 'n_tokens_neox': 979, 'n_words': 175}