This commit is contained in:
2025-12-26 22:35:18 +08:00
commit 9cf62f793b
4263 changed files with 728989 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
//
//default editor
//
$(".summernote").summernote({
height: 350, // set editor height
minHeight: null, // set minimum height of editor
maxHeight: null, // set maximum height of editor
focus: false, // set focus to editable area after initializing summernote
});
//
//inline-editor
//
$(".inline-editor").summernote({
airMode: true,
});
//
//edit and save mode
//
(window.edit = function () {
$(".click2edit").summernote();
}),
(window.save = function () {
$(".click2edit").summernote("destroy");
});
var edit = function () {
$(".click2edit").summernote({ focus: true });
};
var save = function () {
var markup = $(".click2edit").summernote("code");
$(".click2edit").summernote("destroy");
};
//
//airmode editor
//
$(".airmode-summer").summernote({
airMode: true,
});