Justify news content in the editor and on public pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-18 15:16:09 +05:00
parent b33fea4cd7
commit 82b1e903f6
9 changed files with 35 additions and 7 deletions

View File

@@ -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");
}
});
});
}