Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/components/shared/rich-editor/RichEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
AlignJustify,
List,
ListOrdered,
CornerDownLeft,
Undo,
Redo,
PaintBucket,
Expand Down Expand Up @@ -465,6 +466,12 @@ const RichTextEditor = ({
>
<ListOrdered className="h-5 w-5" />
</MenuButton>
<MenuButton
onClick={() => editor.chain().focus().setHardBreak().run()}
tooltip={t("lineBreak")}
>
<CornerDownLeft className="h-5 w-5" />
</MenuButton>
</div>

<div className={cn("h-5 w-px", "bg-border/60 dark:bg-neutral-800")} />
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@
"alignJustify": "Justify",
"bulletList": "Bullet List",
"orderedList": "Ordered List",
"lineBreak": "Line Break (Shift+Enter)",
"undo": "Undo",
"redo": "Redo",
"aiPolish": "AI Polish",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@
"alignJustify": "两端对齐",
"bulletList": "无序列表",
"orderedList": "有序列表",
"lineBreak": "换行 (Shift+Enter)",
"undo": "撤销",
"redo": "重做",
"aiPolish": "AI 润色",
Expand Down