<fim-prefix> editor.
         */
        'readmore': function (context) {
            var self = this;
            
            // ui has renders to build ui elements.
            //  - you can create a button with `ui.button`
            var ui = $.summernote.ui;
            
            // add readmore button
            context.memo('button.readmore', function () {
                // create button
                var button = ui.button({
                    contents: '<i class="fa fa-long-arrow-right"/> Read-More',
                    tooltip: 'readmore',
                    click: function () {

                        context.invoke('editor.insertText', '[[--readmore--]]');
                    }
                });
                
                // create jQuery object from button instance.
                var $readmore = button.render();
                return $readmore;
            });

        },
        'elfinder': function (context) {
            var self = this;
            
            // ui has renders to build ui elements.
            //  - you can create a button with `ui.button`
            var ui = $.summernote.ui;
            
            // add elfinder button
            context.memo('button.elfinder', function () {
                // create button
                var button = ui.button({
                    contents: '<i class="fa fa-list-alt"/> File Manager',
                    tooltip: 'elfinder',
                    click: function () {
                        // BUG: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
                        // elfinderDialog();
                        // FIXED:
 <fim-middle>                       elfinderDialog($(this).closest('.note-editor').parent().children('.summernote'));
                    }
                });
                
                // create jQuery obje<fix-suffix>ct from button instance.
                var $elfinder = button.render();
                return $elfinder;
            });
            

        },
        'gxcode': function (context) {
            var self = this;
            
            // ui has renders to build ui elements.
            //  - you can create a button with `ui.button`
            var ui = $.summernote.ui;
            
            // add elfinder button
            context.memo('button.gxcode', function () {
                // create button
                var button = ui.button({
                    contents: '<i class="fa fa-code"/> Code',
                    tooltip: 'Code Wrapper',
                    click: function (event) {

                        var highlight = window.getSelection(),  
                            spn = document.createElement('pre'),
                            range = highlight.getRangeAt(0)
                            // highlight = nl2br(highlight, true);
                            high<|endoftext|>