HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/crm/public_html/wwwroot/assets/js/editor/summernote/summernote.custom.js
var summernote_custom = {
    init: function() {
        $('.summernote').summernote({
            height: 300,
            tabsize: 2
        });
        $('.inline-editor').summernote({
            airMode: true
        });
        $(".hint2basic").summernote({
            height: 100,
            toolbar: false,
            placeholder: 'type with apple, orange, watermelon, lemon',
            hint: {
                words: ['apple', 'orange', 'watermelon', 'lemon'],
                match: /\b(\w{1,})$/,
                search: function (keyword, callback) {
                    callback($.grep(this.words, function (item) {
                        return item.indexOf(keyword) === 0;
                    }));    
                }
            }
        });
    }
};
(function($) {
    "use strict";
    summernote_custom.init();
})(jQuery);

var edit = function() {
    $('.click2edit').summernote({focus: true});
};

var save = function() {
    var markup = $('.click2edit').summernote('code');
    $('.click2edit').summernote('destroy');
};