Please enter your login details.
');
}
$(element).summernote({
lang: $(this).attr('data-lang'),
disableDragAndDrop: true,
height: 300,
emptyPara: '',
codemirror: { // codemirror options
mode: 'text/html',
htmlMode: true,
lineNumbers: true,
theme: 'monokai'
},
fontsize: ['8', '9', '10', '11', '12', '14', '16', '18', '20', '24', '30', '36', '48' , '64'],
toolbar: [
['style', ['style']],
['font', ['bold', 'underline', 'clear']],
['fontname', ['fontname']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['table', ['table']],
['insert', ['link', 'image', 'video']],
['view', ['fullscreen', 'codeview', 'help']]
],
popover: {
image: [
['custom', ['imageAttributes']],
['imagesize', ['imageSize100', 'imageSize50', 'imageSize25']],
['float', ['floatLeft', 'floatRight', 'floatNone']],
['remove', ['removeMedia']]
],
},
buttons: {
image: function() {
var ui = $.summernote.ui;
// create button
var button = ui.button({
contents: '
',
tooltip: $.summernote.lang[$.summernote.options.lang].image.image,
click: function () {
$('#modal-image').remove();
var fm = $('
').dialogelfinder({
url : 'index.php?route=common/filemanager/connector&user_token=' + getURLVar('user_token')+'&pim_available=',
lang : 'en',
width : 800 ,
height: 400 ,
destroyOnClose : true,
getFileCallback : function(files, fm) {
var img = document.createElement('img');
a = files.url;
$(element).summernote('insertImage', a);
},
commandsOptions : {
getfile : {
oncomplete : 'close',
folders : false
}
}
}).dialogelfinder('instance');
}
});
return button.render();
}
}
});
});
});
});
//-->