Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
Tea.context(function () {
this.success = NotifySuccess("保存成功", "/settings/user-ui/posts")
this.type = "normal"
// reference: https://quilljs.com/docs/modules/toolbar/
this.body = ""
let that = this
setTimeout(function () {
let quill = new Quill('#editor', {
theme: 'snow',
modules: {
toolbar: [
['bold', 'italic', 'underline', 'strike'],
[{'header': 1}, {'header': 2}],
[{'list': 'ordered'}, {'list': 'bullet'}],
[{'indent': '-1'}, {'indent': '+1'}],
[{'direction': 'rtl'}],
[{'size': ['small', false, 'large', 'huge']}],
[{'header': [1, 2, 3, 4, 5, 6, false]}],
[{'color': []}, {'background': []}],
[{'font': []}],
[{'align': []}],
['link', 'image'],
['clean']
]
}
})
quill.on("text-change", function () {
that.body = quill.root.innerHTML
})
}, 100)
})