mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-06 02:36:40 +00:00
15 lines
315 B
JavaScript
15 lines
315 B
JavaScript
let quill = new Quill("#editor", {
|
|
theme: "snow"
|
|
});
|
|
|
|
function save() {
|
|
let text = quill.getContents();
|
|
console.log(text);
|
|
|
|
fetch("http://localhost:8080/editor", {
|
|
method: "post",
|
|
headers: { Accept: "application/json", "Content-Type": "application/json" }
|
|
});
|
|
|
|
console.log("send to backend");
|
|
}
|