|
this.format = {
types: [
{ text: "Paragraph", value: "p", cssClass: "e-paragraph" },
{ text: "Code", value: "pre", cssClass: "e-code" },
{ text: "Quotation", value: "blockquote", cssClass: "e-quote" },
{ text: "Heading 1", value: "h1", cssClass: "e-h1" },
{ text: "Heading 2", value: "h2", cssClass: "e-h2" },
{ text: "Heading 3", value: "h3", cssClass: "e-h3" },
{ text: "Heading 4", value: "h4", cssClass: "e-h4" },
{ text: "Heading 5", value: "h5", cssClass: "e-h5" },
{ text: "Heading 6", value: "h6", cssClass: "e-h6" }
]
}; |
|
L10n.load({
"de-DE": {
"richtexteditor": {
justifyCenter: "Text-Zentrum",
justifyFull: "rechtfertigen",
justifyLeft: "Ausrichten von Text links",
justifyRight: "Ausrichten von Text rechts"
}
}
});
<RichTextEditorComponent locale={"de-DE"} /> |