Commit inicial Ventas Productivo
This commit is contained in:
30
Metronic/assets/admin/pages/scripts/components-editors.js
Normal file
30
Metronic/assets/admin/pages/scripts/components-editors.js
Normal file
@@ -0,0 +1,30 @@
|
||||
var ComponentsEditors = function () {
|
||||
|
||||
var handleWysihtml5 = function () {
|
||||
if (!jQuery().wysihtml5) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($('.wysihtml5').size() > 0) {
|
||||
$('.wysihtml5').wysihtml5({
|
||||
"stylesheets": ["../../assets/global/plugins/bootstrap-wysihtml5/wysiwyg-color.css"]
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var handleSummernote = function () {
|
||||
$('#summernote_1').summernote({height: 300});
|
||||
//API:
|
||||
//var sHTML = $('#summernote_1').code(); // get code
|
||||
//$('#summernote_1').destroy(); // destroy
|
||||
}
|
||||
|
||||
return {
|
||||
//main function to initiate the module
|
||||
init: function () {
|
||||
handleWysihtml5();
|
||||
handleSummernote();
|
||||
}
|
||||
};
|
||||
|
||||
}();
|
||||
Reference in New Issue
Block a user