definicao de layout
This commit is contained in:
38
public/assets/js/editor/summernote/summernote.custom.js
Normal file
38
public/assets/js/editor/summernote/summernote.custom.js
Normal file
@@ -0,0 +1,38 @@
|
||||
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');
|
||||
};
|
||||
7323
public/assets/js/editor/summernote/summernote.js
Normal file
7323
public/assets/js/editor/summernote/summernote.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user