Justify news content in the editor and on public pages.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
[{ header: [1, 2, 3, false] }],
|
||||
["bold", "italic", "underline", "strike"],
|
||||
[{ list: "ordered" }, { list: "bullet" }],
|
||||
[{ align: ["", "center", "right", "justify"] }],
|
||||
["link"],
|
||||
["clean"],
|
||||
];
|
||||
@@ -152,6 +153,9 @@
|
||||
modules: { toolbar: QUILL_TOOLBAR },
|
||||
placeholder: field.label + " (" + lang.label + ")",
|
||||
});
|
||||
if (slug === "news") {
|
||||
richEditors[field.name][lang.code].format("align", "justify");
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -9,6 +9,13 @@
|
||||
<link rel="stylesheet" href="/M0n1t0r/assets/css/app.css">
|
||||
{{if eq .Page "form"}}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css">
|
||||
<style>
|
||||
.ql-editor p { text-align: justify; }
|
||||
.ql-editor .ql-align-left { text-align: left; }
|
||||
.ql-editor .ql-align-center { text-align: center; }
|
||||
.ql-editor .ql-align-right { text-align: right; }
|
||||
.ql-editor .ql-align-justify { text-align: justify; }
|
||||
</style>
|
||||
{{end}}
|
||||
</head>
|
||||
<body class="min-h-screen bg-base-200"
|
||||
@@ -42,7 +49,7 @@
|
||||
{{if eq .Page "form"}}
|
||||
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.js"></script>
|
||||
{{end}}
|
||||
<script src="/M0n1t0r/assets/js/form.js"></script>
|
||||
<script src="/M0n1t0r/assets/js/form.js?v=2"></script>
|
||||
<script src="/M0n1t0r/assets/js/dashboard.js"></script>
|
||||
<script src="/M0n1t0r/assets/js/settings.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user