// TODO: The typings are both incompleted and outdated.
return {
+ alignment: {
+ options: [
+ { name: "center", className: "text-center" },
+ { name: "left", className: "text-left" },
+ { name: "justify", className: "text-justify" },
+ { name: "right", className: "text-right" },
+ ],
+ },
language,
removePlugins: this.#removePlugins,
toolbar: this.#getToolbar(),
const language = Object.keys(window.CKEDITOR_TRANSLATIONS).find((language) => language !== "en");
// TODO: The typings are both incompleted and outdated.
return {
+ alignment: {
+ options: [
+ { name: "center", className: "text-center" },
+ { name: "left", className: "text-left" },
+ { name: "justify", className: "text-justify" },
+ { name: "right", className: "text-right" },
+ ],
+ },
language,
removePlugins: this.#removePlugins,
toolbar: this.#getToolbar(),
height: 16px;
width: 16px;
}
+
+/* Text Alignment */
+.text-center {
+ text-align: center !important;
+}
+
+.text-left {
+ text-align: left !important;
+}
+
+.text-justify {
+ text-align: justify !important;
+ -webkit-hyphens: auto;
+ hyphens: auto;
+}
+
+.text-right {
+ text-align: right !important;
+}